return ValueFactory.create(Double.longBitsToDouble(Bytes.readLong(in)));
case STRING:
return ValueFactory.create(Bytes.readString(in));
case ARRAY:
int len = (int) Bytes.readLength(in);
ValueArray arr = ValueFactory.createArray(len);
for (int i = 0; i < len; i++) {
arr.add(decodeValue(in, classMap));
}
return arr;
case MAP:
ValueMap map = ValueFactory.createMap();
long count = Bytes.readLength(in);