• pjulien's avatar
    Issue #136 · 4d3db992
    pjulien authored
    The satellite data of the ``ByteBuffer`` cannot be modified in
    any way and stay thread safe in the presence of concurrent readers.
    
    This implementation is simple and does introduce an allocation, however
    without it multiple readers will quickly and continuously encounter
    ``IndexOutOfBoundsException`` exceptions.
    
    An alternative, but possibly more controversial, implementation would
    be to use ``Unsafe``.  Using ``Unsafe``, it's possible to do an
    array copy with a provided buffer index.
    
    Change-Id: I851d4034e753b3be2931ee2249ec2c82dde43135
    4d3db992
Name
Last commit
Last update
CMake Loading commit data...
android Loading commit data...
build Loading commit data...
docs Loading commit data...
go Loading commit data...
include/flatbuffers Loading commit data...
java Loading commit data...
net/FlatBuffers Loading commit data...
samples Loading commit data...
src Loading commit data...
tests Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
CMakeLists.txt Loading commit data...
CONTRIBUTING.md Loading commit data...
LICENSE.txt Loading commit data...
readme.md Loading commit data...