Closed gemoglobin closed 1 year ago
It sounds like your data is too large. FlatBuffers can support at most 2GB due to signed 32 bit integers as a critical data structure. FlatSharp has a (somewhat artificial) limit of 1GB.
That said -- GetMaxSize
truly does compute the worst case. You might have luck if you were to just try to serialize the data into a ~1GB array. If FlatSharp goes over a limit, you'll get a BufferTooSmallException
.
However, if you are that close to the limit, you should explore ways to partition your data.
runningSum can be greater than int