zserio
zserio copied to clipboard
Cross language portability for maximum object size
Currently, the maximum object size in bits is not defined. The maximum object size in bits is given by native type used to store the bit size:
- 32-bit size_t for 32-bit C++
- 64-bit size_t for 64-bit C++
- 32-bit signed integer for Java
- limited only by memory for Python
The strongest limit has Java which allows objects with byte size (size stored in the bit stream) up to 256MB. 32-bit C++ allows objects up to 512MB.