T
class instances as ordered byte
sequence.getXXX()
reads from the given input
are performed.offset
in the byte sequence represented by the given
input
, returned widened to int
.[offset, offset + 3]
bytes of the byte sequence represented by the given
input
as a single int
value.[offset, offset + 7]
bytes of the byte sequence represented by the given
input
as a single long
value.[offset, offset + 1]
bytes of the byte sequence represented by the given
input
as a single short
value, returned widened to int
.getByte(input, offset) & 0xFF
.getInt(input, offset) & 0xFFFFFFFFL
.getShort(input, offset) & 0xFFFF
.len
continuous bytes of the given input
object,
starting from the given offset.hashBooleans(new boolean[] {input})
.hashBooleans(input, 0, input.length)
.boolean
array.byte
value.hashBytes(input, 0, input.length)
.byte
array.hashBytes(input, input.position(), input.remaining())
.ByteBuffer
.char
value; this method is consistent with
LongHashFunction
methods that accept sequences of bytes, assuming the input
value is interpreted in native byte order.hashChars(input, 0, input.length)
.char
array.hashChars(input, 0, input.length())
.String
's
underlying char
array.hashChars(input, 0, input.length())
.StringBuilder
's underlying char
array.int
value; this method is consistent with
LongHashFunction
methods that accept sequences of bytes, assuming the input
value is interpreted in native byte order.hashInts(input, 0, input.length)
.int
array.long
value; this method is consistent with
LongHashFunction
methods that accept sequences of bytes, assuming the input
value is interpreted in native byte order.hashLongs(input, 0, input.length)
.long
array.short
value; this method is consistent with
LongHashFunction
methods that accept sequences of bytes, assuming the input
value is interpreted in native byte order.hashShorts(input, 0, input.length)
.short
array.hashBytes(new byte[0])
.long
-valued result from byte sequences of any length and
a plenty of different sources which "feels like byte sequences".Access
to any ByteBuffer
.Access
delegating getXXX(input, offset)
methods to sun.misc.Unsafe.getXXX(input, offset)
.Copyright © 2014–2017. All rights reserved.