Class LZ4StreamHC

  • All Implemented Interfaces:
    org.lwjgl.system.Pointer

    public class LZ4StreamHC
    extends org.lwjgl.system.Struct

    Layout

    
     union LZ4_streamHC_t {
         size_t table[LZ4_STREAMHCSIZE_SIZET];
         struct LZ4HC_CCtx_internal internal_donotuse;
     }
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  LZ4StreamHC.Buffer
      An array of LZ4StreamHC structs.
      • Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer

        org.lwjgl.system.Pointer.Default
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int ALIGNOF
      The struct alignment in bytes.
      static int INTERNAL_DONOTUSE
      The struct member offsets.
      static int SIZEOF
      The struct size in bytes.
      static int TABLE
      The struct member offsets.
      • Fields inherited from interface org.lwjgl.system.Pointer

        BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
    • Constructor Summary

      Constructors 
      Constructor Description
      LZ4StreamHC​(java.nio.ByteBuffer container)
      Creates a LZ4StreamHC instance at the current position of the specified ByteBuffer container.
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • TABLE, INTERNAL_DONOTUSE

        The struct member offsets.
    • Constructor Detail

      • LZ4StreamHC

        public LZ4StreamHC​(java.nio.ByteBuffer container)
        Creates a LZ4StreamHC 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()
        Specified by:
        sizeof in class org.lwjgl.system.Struct
      • table

        public org.lwjgl.PointerBuffer table()
        Returns a PointerBuffer view of the table field.
      • table

        public long table​(int index)
        Returns the value at the specified index of the table field.
      • create

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

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

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

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

        public static org.lwjgl.PointerBuffer ntable​(long struct)
        Unsafe version of table().
      • ntable

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