zserio icon indicating copy to clipboard operation
zserio copied to clipboard

Cross language portability for maximum object size

Open mikir opened this issue 4 years ago • 0 comments

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.

mikir avatar May 20 '20 13:05 mikir