Class LZ4HCCCtxInternal

  • All Implemented Interfaces:
    Pointer

    public class LZ4HCCCtxInternal
    extends Struct

    Member documentation

    • end – next block here to continue on current prefix
    • base – All index relative to this position
    • dictBase – alternate base for extDict
    • dictLimit – below that point, need extDict
    • lowLimit – below that point, no more dict
    • nextToUpdate – index from which to continue dictionary update

    Layout

    
     struct LZ4HC_CCtx_internal {
         uint32_t hashTable[LZ4HC_HASHTABLESIZE];
         uint16_t chainTable[LZ4HC_MAXD];
         uint8_t const * end;
         uint8_t const * base;
         uint8_t const * dictBase;
         uint32_t dictLimit;
         uint32_t lowLimit;
         uint32_t nextToUpdate;
         short compressionLevel;
         short favorDecSpeed;
         LZ4HC_CCtx_internal * const dictCtx;
     }
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • HASHTABLE, CHAINTABLE, END, BASE, DICTBASE, DICTLIMIT, LOWLIMIT, NEXTTOUPDATE, COMPRESSIONLEVEL, FAVORDECSPEED, DICTCTX

        The struct member offsets.
    • Constructor Detail

      • LZ4HCCCtxInternal

        public LZ4HCCCtxInternal​(java.nio.ByteBuffer container)
        Creates a LZ4HCCCtxInternal 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.
      • chainTable

        public java.nio.ShortBuffer chainTable()
        Returns a ShortBuffer view of the chainTable field.
      • chainTable

        public short chainTable​(int index)
        Returns the value at the specified index of the chainTable field.
      • end

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

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

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

        public int dictLimit()
        Returns the value of the dictLimit field.
      • lowLimit

        public int lowLimit()
        Returns the value of the lowLimit field.
      • nextToUpdate

        public int nextToUpdate()
        Returns the value of the nextToUpdate field.
      • compressionLevel

        public short compressionLevel()
        Returns the value of the compressionLevel field.
      • favorDecSpeed

        public short favorDecSpeed()
        Returns the value of the favorDecSpeed field.
      • createSafe

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

        @Nullable
        public static LZ4HCCCtxInternal.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.
      • nchainTable

        public static java.nio.ShortBuffer nchainTable​(long struct)
        Unsafe version of chainTable().
      • nchainTable

        public static short nchainTable​(long struct,
                                        int index)
        Unsafe version of chainTable.
      • nend

        public static java.nio.ByteBuffer nend​(long struct,
                                               int capacity)
        Unsafe version of end.
      • nbase

        public static java.nio.ByteBuffer nbase​(long struct,
                                                int capacity)
        Unsafe version of base.
      • ndictBase

        public static java.nio.ByteBuffer ndictBase​(long struct,
                                                    int capacity)
        Unsafe version of dictBase.
      • ndictLimit

        public static int ndictLimit​(long struct)
        Unsafe version of dictLimit().
      • nlowLimit

        public static int nlowLimit​(long struct)
        Unsafe version of lowLimit().
      • nnextToUpdate

        public static int nnextToUpdate​(long struct)
        Unsafe version of nextToUpdate().
      • ncompressionLevel

        public static short ncompressionLevel​(long struct)
        Unsafe version of compressionLevel().
      • nfavorDecSpeed

        public static short nfavorDecSpeed​(long struct)
        Unsafe version of favorDecSpeed().