Class LZ4StreamDecode

  • All Implemented Interfaces:
    Pointer

    public class LZ4StreamDecode
    extends Struct

    Layout

    
     union LZ4_streamDecode_t {
         unsigned long long table[LZ4_STREAMDECODESIZE_U64];
         LZ4_streamDecode_t_internal internal_donotuse;
     }
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • TABLE, INTERNAL_DONOTUSE

        The struct member offsets.
    • Constructor Detail

      • LZ4StreamDecode

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

      • sizeof

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

        public java.nio.LongBuffer table()
        Returns a LongBuffer view of the table field.
      • table

        public long table​(int index)
        Returns the value at the specified index of the table field.
      • 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.
      • ntable

        public static java.nio.LongBuffer ntable​(long struct)
        Unsafe version of table().
      • ntable

        public static long ntable​(long struct,
                                  int index)
        Unsafe version of table.