Class NativeBuffer

  • All Implemented Interfaces:

    
    public final class NativeBuffer
    
                        

    A native memory wrapper, whose underlying memory can be passed to another JNI method directly. Avoiding unnecessary JNI boxing and unboxing. Must be destroy manually destroyNativeBuffer.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
      public long pointer
      public int size
    • Constructor Summary

      Constructors 
      Constructor Description
      NativeBuffer(long ptr, int length)
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • NativeBuffer

        NativeBuffer(long ptr, int length)
    • Method Detail