Class LZ4.HCHashTable

  • Enclosing class:
    LZ4

    static final class LZ4.HCHashTable
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      HCHashTable()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private void addHash​(byte[] bytes, int off)  
      private int hashPointer​(byte[] bytes, int off)  
      (package private) void insert​(int off, byte[] bytes)  
      (package private) boolean insertAndFindBestMatch​(byte[] buf, int off, int matchLimit, LZ4.Match match)  
      (package private) boolean insertAndFindWiderMatch​(byte[] buf, int off, int startLimit, int matchLimit, int minLen, LZ4.Match match)  
      private int next​(int off)  
      private void reset​(int base)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • nextToUpdate

        int nextToUpdate
      • base

        private int base
      • hashTable

        private final int[] hashTable
      • chainTable

        private final short[] chainTable
    • Constructor Detail

      • HCHashTable

        HCHashTable()
    • Method Detail

      • reset

        private void reset​(int base)
      • hashPointer

        private int hashPointer​(byte[] bytes,
                                int off)
      • next

        private int next​(int off)
      • addHash

        private void addHash​(byte[] bytes,
                             int off)
      • insert

        void insert​(int off,
                    byte[] bytes)
      • insertAndFindBestMatch

        boolean insertAndFindBestMatch​(byte[] buf,
                                       int off,
                                       int matchLimit,
                                       LZ4.Match match)
      • insertAndFindWiderMatch

        boolean insertAndFindWiderMatch​(byte[] buf,
                                        int off,
                                        int startLimit,
                                        int matchLimit,
                                        int minLen,
                                        LZ4.Match match)