Class LZ4FCustomMem

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

@NativeType("struct LZ4F_CustomMem") public class LZ4FCustomMem extends Struct<LZ4FCustomMem> implements NativeResource
struct LZ4F_CustomMem {
    LZ4F_AllocFunction customAlloc;
    LZ4F_CallocFunction customCalloc;
    LZ4F_FreeFunction customFree;
    void * opaqueState;
}
  • Field Details

    • SIZEOF

      public static final int SIZEOF
      The struct size in bytes.
    • ALIGNOF

      public static final int ALIGNOF
      The struct alignment in bytes.
    • CUSTOMALLOC

      public static final int CUSTOMALLOC
      The struct member offsets.
    • CUSTOMCALLOC

      public static final int CUSTOMCALLOC
      The struct member offsets.
    • CUSTOMFREE

      public static final int CUSTOMFREE
      The struct member offsets.
    • OPAQUESTATE

      public static final int OPAQUESTATE
      The struct member offsets.
  • Constructor Details

    • LZ4FCustomMem

      public LZ4FCustomMem(ByteBuffer container)
      Creates a LZ4FCustomMem instance at the current position of the specified ByteBuffer container. Changes to the buffer's content will be visible to the struct instance and vice versa.

      The created instance holds a strong reference to the container object.

  • Method Details