Package org.xerial.snappy.buffer
Class DefaultBufferAllocator
java.lang.Object
org.xerial.snappy.buffer.DefaultBufferAllocator
- All Implemented Interfaces:
BufferAllocator
Simple buffer allocator, which does not reuse the allocated buffer
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
factory
-
-
Constructor Details
-
DefaultBufferAllocator
public DefaultBufferAllocator()
-
-
Method Details
-
allocate
public byte[] allocate(int size) - Specified by:
allocate
in interfaceBufferAllocator
-
release
public void release(byte[] buffer) - Specified by:
release
in interfaceBufferAllocator
-