Class LZ4StreamInternal

  • All Implemented Interfaces:

    public class LZ4StreamInternal
    extends Struct


     struct LZ4_stream_t_internal {
         uint32_t hashTable[LZ4_HASH_SIZE_U32];
         uint32_t currentOffset;
         uint16_t dirty;
         uint16_t tableType;
         uint8_t const * dictionary;
         LZ4_stream_t_internal * const dictCtx;
         uint32_t dictSize;
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.

        The struct member offsets.
    • Constructor Detail

      • LZ4StreamInternal

        public LZ4StreamInternal​(java.nio.ByteBuffer container)
        Creates a LZ4StreamInternal 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 Detail

      • sizeof

        public int sizeof()
        Description copied from class: Struct
        Returns sizeof(struct).
        Specified by:
        sizeof in class Struct
      • hashTable

        public java.nio.IntBuffer hashTable()
        Returns a IntBuffer view of the hashTable field.
      • hashTable

        public int hashTable​(int index)
        Returns the value at the specified index of the hashTable field.
      • currentOffset

        public int currentOffset()
        Returns the value of the currentOffset field.
      • dirty

        public short dirty()
        Returns the value of the dirty field.
      • tableType

        public short tableType()
        Returns the value of the tableType field.
      • dictionary

        public java.nio.ByteBuffer dictionary​(int capacity)
        Returns a ByteBuffer view of the data pointed to by the dictionary field.
        capacity - the number of elements in the returned buffer
      • dictSize

        public int dictSize()
        Returns the value of the dictSize field.
      • create

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

        public static LZ4StreamInternal createSafe​(long address)
        Like create, but returns null if address is NULL.
      • createSafe

        public static LZ4StreamInternal.Buffer createSafe​(long address,
                                                          int capacity)
        Like create, but returns null if address is NULL.
      • nhashTable

        public static java.nio.IntBuffer nhashTable​(long struct)
        Unsafe version of hashTable().
      • nhashTable

        public static int nhashTable​(long struct,
                                     int index)
        Unsafe version of hashTable.
      • ncurrentOffset

        public static int ncurrentOffset​(long struct)
        Unsafe version of currentOffset().
      • ndirty

        public static short ndirty​(long struct)
        Unsafe version of dirty().
      • ntableType

        public static short ntableType​(long struct)
        Unsafe version of tableType().
      • ndictionary

        public static java.nio.ByteBuffer ndictionary​(long struct,
                                                      int capacity)
        Unsafe version of dictionary.
      • ndictSize

        public static int ndictSize​(long struct)
        Unsafe version of dictSize().