Class LZ4StreamDecodeInternal

All Implemented Interfaces:
Pointer

public class LZ4StreamDecodeInternal extends Struct<LZ4StreamDecodeInternal>

 struct LZ4_streamDecode_t_internal {
     LZ4_byte const * externalDict;
     LZ4_byte const * prefixEnd;
     size_t extDictSize;
     size_t prefixSize;
 }
  • Field Details

    • SIZEOF

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

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

      public static final int EXTERNALDICT
      The struct member offsets.
    • PREFIXEND

      public static final int PREFIXEND
      The struct member offsets.
    • EXTDICTSIZE

      public static final int EXTDICTSIZE
      The struct member offsets.
    • PREFIXSIZE

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

    • LZ4StreamDecodeInternal

      public LZ4StreamDecodeInternal(ByteBuffer container)
      Creates a LZ4StreamDecodeInternal 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<LZ4StreamDecodeInternal>
    • externalDict

      public ByteBuffer externalDict(int capacity)
      Returns:
      a ByteBuffer view of the data pointed to by the externalDict field.
    • prefixEnd

      public ByteBuffer prefixEnd(int capacity)
      Returns:
      a ByteBuffer view of the data pointed to by the prefixEnd field.
    • extDictSize

      public long extDictSize()
      Returns:
      the value of the extDictSize field.
    • prefixSize

      public long prefixSize()
      Returns:
      the value of the prefixSize field.
    • create

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

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

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

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

      public static ByteBuffer nexternalDict(long struct, int capacity)
      Unsafe version of externalDict.
    • nprefixEnd

      public static ByteBuffer nprefixEnd(long struct, int capacity)
      Unsafe version of prefixEnd.
    • nextDictSize

      public static long nextDictSize(long struct)
      Unsafe version of extDictSize().
    • nprefixSize

      public static long nprefixSize(long struct)
      Unsafe version of prefixSize().