Class LZ4StreamDecode

All Implemented Interfaces:
Pointer

public class LZ4StreamDecode extends Struct<LZ4StreamDecode>

Layout


 union LZ4_streamDecode_t {
     char minStateSize[LZ4_STREAMDECODE_MINSIZE];
     LZ4_streamDecode_t_internal internal_donotuse;
 }
  • Field Details

    • SIZEOF

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

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

      public static final int MINSTATESIZE
      The struct member offsets.
    • INTERNAL_DONOTUSE

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

    • LZ4StreamDecode

      public LZ4StreamDecode(ByteBuffer container)
      Creates a LZ4StreamDecode 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

    • sizeof

      public int sizeof()
      Description copied from class: Struct
      Returns sizeof(struct).
      Specified by:
      sizeof in class Struct<LZ4StreamDecode>
    • minStateSize

      public ByteBuffer minStateSize()
      Returns:
      a ByteBuffer view of the minStateSize field.
    • minStateSize

      public byte minStateSize(int index)
      Returns:
      the value at the specified index of the minStateSize field.
    • internal_donotuse

      public LZ4StreamDecodeInternal internal_donotuse()
      Returns:
      a LZ4StreamDecodeInternal view of the internal_donotuse field.
    • create

      public static LZ4StreamDecode create(long address)
      Returns a new LZ4StreamDecode instance for the specified memory address.
    • createSafe

      @Nullable public static LZ4StreamDecode createSafe(long address)
      Like create, but returns null if address is NULL.
    • create

      public static LZ4StreamDecode.Buffer create(long address, int capacity)
      Create a LZ4StreamDecode.Buffer instance at the specified memory.
      Parameters:
      address - the memory address
      capacity - the buffer capacity
    • createSafe

      @Nullable public static LZ4StreamDecode.Buffer createSafe(long address, int capacity)
      Like create, but returns null if address is NULL.
    • nminStateSize

      public static ByteBuffer nminStateSize(long struct)
      Unsafe version of minStateSize().
    • nminStateSize

      public static byte nminStateSize(long struct, int index)
      Unsafe version of minStateSize.
    • ninternal_donotuse

      public static LZ4StreamDecodeInternal ninternal_donotuse(long struct)
      Unsafe version of internal_donotuse().