In some contexts (such as migrating from legacy lmdbjni/leveldbjni APIs) it would be nice to have a Dbi<byte[]> instead of wrapping arrays with ByteBuffers and copying out the data in the caller. On first glance the design seems to indicate this should be accomplished with a BufferProxy implementation – but it's not clear how... eg. at the point of the allocate() call the size is unknown, etc.
In some contexts (such as migrating from legacy lmdbjni/leveldbjni APIs) it would be nice to have a
Dbi<byte[]>instead of wrapping arrays withByteBuffersand copying out the data in the caller. On first glance the design seems to indicate this should be accomplished with aBufferProxyimplementation – but it's not clear how... eg. at the point of theallocate()call the size is unknown, etc.