Class FLSliceResult

  • All Implemented Interfaces:
    AutoCloseable

    public abstract class FLSliceResult
    extends C4NativePeer
    Represent the block of native heap memory whose ref is passed as a parameter or returned returned by the Core "init" call. The caller takes ownership of the "managed" version's peer and must call the close() method to release it. The "unmanaged" version's peer belongs to Core: it will be release by the native code.
    • Method Detail

      • getUnmanagedSliceResult

        @NonNull
        public static FLSliceResult getUnmanagedSliceResult()
      • getUnmanagedSliceResult

        @NonNull
        public static FLSliceResult getUnmanagedSliceResult​(long peer)
      • getManagedSliceResult

        @NonNull
        public static FLSliceResult getManagedSliceResult()
      • getManagedSliceResult

        @NonNull
        public static FLSliceResult getManagedSliceResult​(long peer)
      • close

        public abstract void close()
      • getHandle

        public long getHandle()
      • getBuf

        @NonNull
        public byte[] getBuf()
      • getSize

        public long getSize()