Class FLSliceResult
- java.lang.Object
-
- com.couchbase.lite.internal.core.C4NativePeer
-
- com.couchbase.lite.internal.fleece.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 Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract void
close()
byte[]
getBuf()
long
getHandle()
static FLSliceResult
getManagedSliceResult()
static FLSliceResult
getManagedSliceResult(long peer)
long
getSize()
static FLSliceResult
getUnmanagedSliceResult()
static FLSliceResult
getUnmanagedSliceResult(long peer)
String
toString()
-
-
-
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)
-
toString
@NonNull public String toString()
- Overrides:
toString
in classC4NativePeer
-
close
public abstract void close()
-
getHandle
public long getHandle()
-
getBuf
@NonNull public byte[] getBuf()
-
getSize
public long getSize()
-
-