Class CachedBufferAllocator
java.lang.Object
org.xerial.snappy.buffer.CachedBufferAllocator
- All Implemented Interfaces:
BufferAllocator
Cached buffer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]allocate(int size) static CachedBufferAllocatorgetAllocator(int bufferSize) static BufferAllocatorFactoryvoidrelease(byte[] buffer) static void
-
Constructor Details
-
CachedBufferAllocator
public CachedBufferAllocator(int bufferSize)
-
-
Method Details
-
setBufferAllocatorFactory
-
getBufferAllocatorFactory
-
getAllocator
-
allocate
public byte[] allocate(int size) - Specified by:
allocatein interfaceBufferAllocator
-
release
public void release(byte[] buffer) - Specified by:
releasein interfaceBufferAllocator
-