PVUnion/PVUnionArray support and tests

This commit is contained in:
Matej Sekoranja
2013-11-07 14:12:26 +01:00
parent cbf7b69ef0
commit d40c41048d
15 changed files with 1416 additions and 41 deletions

View File

@@ -56,7 +56,7 @@ struct ScalarArrayHashFunction {
struct StructureHashFunction {
size_t operator() (const Structure& /*structure*/) const { return 0; }
// TODO
// TODO hash
// final int PRIME = 31;
// return PRIME * Arrays.hashCode(fieldNames) + Arrays.hashCode(fields);
};
@@ -934,7 +934,7 @@ FieldConstPtr FieldCreate::deserialize(ByteBuffer* buffer, DeserializableControl
if (code == -1)
return FieldConstPtr();
int typeCode = code & 0xE0;
int typeCode = code & 0xEF;
bool notArray = ((code & 0x10) == 0);
if (notArray)
{