Package io.undertow.util
Class DirectByteBufferDeallocator
java.lang.Object
io.undertow.util.DirectByteBufferDeallocator
DirectByteBufferDeallocator Utility class used to free direct buffer memory.-
Method Summary
Modifier and TypeMethodDescriptionstatic voidfree(ByteBuffer buffer) Attempts to deallocate the underlying direct memory.
-
Method Details
-
free
Attempts to deallocate the underlying direct memory. This is a no-op for buffers whereByteBuffer.isDirect()returns false.- Parameters:
buffer- to deallocate
-