/** * Try to deallocate the specified direct {@link ByteBuffer}. Please note this method does nothing * if the current platform does not support this operation or the specified buffer is not a direct * buffer. */ public static void freeDirectBuffer(ByteBuffer buffer) { if (canFreeDirectBuffer() && buffer.isDirect()) { PlatformDependent0.freeDirectBuffer(buffer); } }