Class HashWrapper2

java.lang.Object
com.biglybt.core.util.HashWrapper2

public class HashWrapper2 extends Object
This class DOES NOT COPY THE UNDERLYING BYTES AND ONLY SUPPORTS Short.MAX_VALUE bytes
  • Field Details

    • hash

      private final byte[] hash
    • offset

      private final short offset
    • length

      private final short length
    • hash_code

      private final int hash_code
  • Constructor Details

    • HashWrapper2

      public HashWrapper2(byte[] hash)
    • HashWrapper2

      public HashWrapper2(byte[] _hash, int _offset, int _length)
  • Method Details

    • getBytes

      public byte[] getBytes()
    • getOffset

      public short getOffset()
    • getLength

      public short getLength()
    • equals

      public final boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object