flatbuffers/java/com/google/flatbuffers
Diogo Monteiro f96d1ef744
[Java] allowing larger buffer sizes when growing a byte buffer (#6118)
Related with issue #6113.

`(old_buf_size & 0xC0000000) != 0` checks if we can duplicate old_buf_size
 and still be under 2GB (by checking if bit 30 or 31 is 1). This doesn't
allow buffers larger than 1GB.

The strategy now is to allocate a buffer with the maximum array size
when we detect that we are overflowing the 2GB.

Also changed default buffer size to 1024.
2020-09-17 11:55:24 -07:00
..
ArrayReadWriteBuf.java [Java] Grow ArrayReadWriteBuf enough to match requested capacity. (#5921) 2020-06-04 19:48:25 -07:00
BaseVector.java Java: Added access object for vector of struct and vector of tables. (#5233) 2019-09-23 09:22:43 -07:00
BooleanVector.java Java: Added access object for vector of struct and vector of tables. (#5233) 2019-09-23 09:22:43 -07:00
ByteBufferReadWriteBuf.java [Java][FlexBuffers] Make FlexBuffersBuilder reusable by adding clear() (#5889) (#5890) 2020-05-07 12:26:55 -07:00
ByteBufferUtil.java Java/C#/Python prefixed size support (#4445) 2018-03-12 11:30:46 -07:00
ByteVector.java Java: Added access object for vector of struct and vector of tables. (#5233) 2019-09-23 09:22:43 -07:00
Constants.java pre-tag version bump for 1.12 2020-03-12 15:33:39 -07:00
DoubleVector.java Java: Added access object for vector of struct and vector of tables. (#5233) 2019-09-23 09:22:43 -07:00
FlatBufferBuilder.java [Java] allowing larger buffer sizes when growing a byte buffer (#6118) 2020-09-17 11:55:24 -07:00
FlexBuffers.java [Java][FlexBuffers] Optimize Map access (#5735) 2020-03-30 13:46:42 -07:00
FlexBuffersBuilder.java [Java][FlexBuffers] Make FlexBuffersBuilder reusable by adding clear() (#5889) (#5890) 2020-05-07 12:26:55 -07:00
FloatVector.java Java: Added access object for vector of struct and vector of tables. (#5233) 2019-09-23 09:22:43 -07:00
IntVector.java Java: Added access object for vector of struct and vector of tables. (#5233) 2019-09-23 09:22:43 -07:00
LongVector.java Java: Added access object for vector of struct and vector of tables. (#5233) 2019-09-23 09:22:43 -07:00
ReadBuf.java [FlexBuffer][Java] ReadWriteBuf and ReadBuf interface public (#5948) 2020-06-08 09:35:51 -07:00
ReadWriteBuf.java [FlexBuffer][Java] ReadWriteBuf and ReadBuf interface public (#5948) 2020-06-08 09:35:51 -07:00
ShortVector.java Java: Added access object for vector of struct and vector of tables. (#5233) 2019-09-23 09:22:43 -07:00
StringVector.java Java: Added access object for vector of struct and vector of tables. (#5233) 2019-09-23 09:22:43 -07:00
Struct.java Add FLATBUFFERS_COMPATIBILITY string (#5381) 2019-06-17 19:16:21 +02:00
Table.java [Java] Replace Table.UTF8_CHARSET with StandardCharsets.UTF_8 (#5696) 2020-01-06 09:28:19 -08:00
UnionVector.java Java: Added access object for vector of struct and vector of tables. (#5233) 2019-09-23 09:22:43 -07:00
Utf8.java [Java][FlexBuffers] Optimize Map access (#5735) 2020-03-30 13:46:42 -07:00
Utf8Old.java Fixed broken Utf8Old.java 2019-06-24 16:54:28 -07:00
Utf8Safe.java [Java][FlexBuffers] Abstract buffer access from ByteBuffer (#5743) 2020-02-21 11:46:40 -08:00