Class VBlob

java.lang.Object
app.photofox.vipsffm.VBlob

public final class VBlob extends Object
Represents a VipsBlob, boxed to avoid exposing its raw MemorySegment
  • Method Details

    • getUnsafeAddress

      @Deprecated(since="0.5.10", forRemoval=true) public MemorySegment getUnsafeAddress() throws VipsError
      Deprecated, for removal: This API element is subject to removal in a future version.
      Throws:
      VipsError
    • getUnsafeStructAddress

      public MemorySegment getUnsafeStructAddress() throws VipsError
      Gets the raw MemorySegment (C pointer) for this VipsBlob struct You might want the data address instead getUnsafeDataAddress() 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
      Throws:
      VipsError
    • getUnsafeDataAddress

      public MemorySegment getUnsafeDataAddress() throws VipsError
      Not recommended for use, use asByteBuffer() 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
      Throws:
      VipsError
    • byteSize

      public long byteSize()
      Size of the data in this blob
    • asByteBuffer

      @Deprecated(since="0.5.10", forRemoval=true) public ByteBuffer asByteBuffer()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • asArenaScopedByteBuffer

      public ByteBuffer asArenaScopedByteBuffer()
      ByteBuffer representation of the data in this blob Mapped to native memory via DirectByteBuffer, hence does not make a copy, so the data has the same data lifetime as arena
    • asClonedByteBuffer

      public ByteBuffer asClonedByteBuffer()
      ByteBuffer representation of the data in this blob A full copy of the data is taken, so that its contents are not coupled to the scope of arena