Bytes.writeString(type.getName(), out);
} else {
out.write(TYPE.CUSTOM_INDEX.val);
Bytes.writeLength(classID, out);
}
encodeValue(custom.asMap(), out, classIndex);
break;
case MAP:
ValueMap<?> map = val.asMap();
out.write(TYPE.MAP.val);
Bytes.writeLength(map.size(), out);