Package app.photofox.vipsffm
Class VBlob
java.lang.Object
app.photofox.vipsffm.VBlob
Represents a VipsBlob, boxed to avoid exposing its raw MemorySegment
-
Method Summary
Modifier and TypeMethodDescriptionByteBuffer representation of the data in this blob Likely mapped to native memory, hence does not make a copylongbyteSize()Size of the data in this blobGets the raw [MemorySegment] (C pointer) for this blob The memory address' lifetime is bound to the scope of the [arena] Usage of the memory address is strongly discouraged, but it is available if some functionality is missing and you need to use it with [VipsHelper]Not recommended for use, useasByteBuffer()instead Gets the raw [MemorySegment] (C pointer) for the data in this blob Sliced to the length of the data, which isn't always null terminated
-
Method Details
-
getUnsafeAddress
Gets the raw [MemorySegment] (C pointer) for this blob The memory address' lifetime is bound to the scope of the [arena] Usage of the memory address is strongly discouraged, but it is available if some functionality is missing and you need to use it with [VipsHelper] -
getUnsafeDataAddress
Not recommended for use, useasByteBuffer()instead Gets the raw [MemorySegment] (C pointer) for the data in this blob Sliced to the length of the data, which isn't always null terminated -
byteSize
public long byteSize()Size of the data in this blob -
asByteBuffer
ByteBuffer representation of the data in this blob Likely mapped to native memory, hence does not make a copy
-