public struct ByteBufferAllocator
The preferred allocator for
ByteBuffer values. The allocation strategy is opaque but is currently libc’s
Create a fresh
ByteBufferAllocator. In the future the allocator might use for example allocation pools and therefore it’s recommended to reuse
ByteBufferAllocatorswhere possible instead of creating fresh ones in many places.