Package org.xerial.snappy.buffer
Class DefaultBufferAllocator
- java.lang.Object
-
- org.xerial.snappy.buffer.DefaultBufferAllocator
-
- All Implemented Interfaces:
BufferAllocator
public class DefaultBufferAllocator extends java.lang.Object implements BufferAllocator
Simple buffer allocator, which does not reuse the allocated buffer
-
-
Field Summary
Fields Modifier and Type Field Description static BufferAllocatorFactory
factory
-
Constructor Summary
Constructors Constructor Description DefaultBufferAllocator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
allocate(int size)
void
release(byte[] buffer)
-
-
-
Field Detail
-
factory
public static BufferAllocatorFactory factory
-
-
Method Detail
-
allocate
public byte[] allocate(int size)
- Specified by:
allocate
in interfaceBufferAllocator
-
release
public void release(byte[] buffer)
- Specified by:
release
in interfaceBufferAllocator
-
-