Package 

Class NativeBuffer


  • 
    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.

    • Field Summary

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

      Constructors 
      Constructor Description
      NativeBuffer(long ptr, int length)
    • Constructor Detail

      • NativeBuffer

        NativeBuffer(long ptr, int length)