Added padding calculation (not final) so that flattening / unflattening actually works.

Passes all unit tests now and works on Haiku too. Speed is not yet optimized and Message2.cpp is still not cleaned up.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13785 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Michael Lotz
2005-07-20 23:15:03 +00:00
parent bbe759b31b
commit fcf209d9ce
4 changed files with 47 additions and 19 deletions
+1
View File
@@ -67,6 +67,7 @@ public:
void HashClear();
private:
status_t InitCommon();
BMessageField *FindData(const char *name, type_code type,
status_t &error) const;
+2
View File
@@ -53,6 +53,7 @@ public:
bool IsFixedSize() const { return fFixedSize; };
size_t TotalSize() const { return fTotalSize; };
size_t TotalPadding() const { return fTotalPadding; };
void PrintToStream() const;
@@ -68,6 +69,7 @@ private:
BList fItems;
bool fFixedSize;
size_t fTotalSize;
size_t fTotalPadding;
BMessageField *fNext;
};