Class LZ4StreamDecodeInternal

  • All Implemented Interfaces:
    Pointer

    public class LZ4StreamDecodeInternal
    extends Struct

    Layout

    
     struct LZ4_streamDecode_t_internal {
         uint8_t const * externalDict;
         size_t extDictSize;
         uint8_t const * prefixEnd;
         size_t prefixSize;
     }
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • EXTERNALDICT, EXTDICTSIZE, PREFIXEND, PREFIXSIZE

        The struct member offsets.
    • Constructor Detail

      • LZ4StreamDecodeInternal

        public LZ4StreamDecodeInternal​(java.nio.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 Detail

      • sizeof

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

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

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

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

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

        public static java.nio.ByteBuffer nexternalDict​(long struct,
                                                        int capacity)
        Unsafe version of externalDict.
      • nextDictSize

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

        public static java.nio.ByteBuffer nprefixEnd​(long struct,
                                                     int capacity)
        Unsafe version of prefixEnd.
      • nprefixSize

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