Uses of Interface
com.exonum.binding.common.hash.PrimitiveSink
Package | Description |
---|---|
com.exonum.binding.common.hash |
Hash functions and related structures.
|
com.exonum.binding.common.proofs |
-
Uses of PrimitiveSink in com.exonum.binding.common.hash
Subinterfaces of PrimitiveSink in com.exonum.binding.common.hash Modifier and Type Interface Description interface
Hasher
APrimitiveSink
that can compute a hash code after reading the input.Methods in com.exonum.binding.common.hash that return PrimitiveSink Modifier and Type Method Description PrimitiveSink
PrimitiveSink. putBoolean(boolean b)
Puts a boolean into this sink.PrimitiveSink
PrimitiveSink. putByte(byte b)
Puts a byte into this sink.PrimitiveSink
PrimitiveSink. putBytes(byte[] bytes)
Puts an array of bytes into this sink.PrimitiveSink
PrimitiveSink. putBytes(byte[] bytes, int off, int len)
Puts a chunk of an array of bytes into this sink.PrimitiveSink
PrimitiveSink. putBytes(java.nio.ByteBuffer bytes)
Puts the remaining bytes of a byte buffer into this sink.PrimitiveSink
PrimitiveSink. putChar(char c)
Puts a character into this sink.PrimitiveSink
PrimitiveSink. putDouble(double d)
Puts a double into this sink.PrimitiveSink
PrimitiveSink. putFloat(float f)
Puts a float into this sink.PrimitiveSink
PrimitiveSink. putInt(int i)
Puts an int into this sink.PrimitiveSink
PrimitiveSink. putLong(long l)
Puts a long into this sink.PrimitiveSink
PrimitiveSink. putShort(short s)
Puts a short into this sink.PrimitiveSink
PrimitiveSink. putString(java.lang.CharSequence charSequence, java.nio.charset.Charset charset)
Puts a string into this sink using the given charset.PrimitiveSink
PrimitiveSink. putUnencodedChars(java.lang.CharSequence charSequence)
Puts each 16-bit code unit from theCharSequence
into this sink.Methods in com.exonum.binding.common.hash with parameters of type PrimitiveSink Modifier and Type Method Description static java.io.OutputStream
Funnels. asOutputStream(PrimitiveSink sink)
Wraps aPrimitiveSink
as anOutputStream
, so it is easy tofunnel
an object to aPrimitiveSink
if there is already a way to write the contents of the object to anOutputStream
.void
Funnel. funnel(T from, PrimitiveSink into)
Sends a stream of data from thefrom
object into the sinkinto
.void
Funnels.HashCodeFunnel. funnel(HashCode from, PrimitiveSink into)
-
Uses of PrimitiveSink in com.exonum.binding.common.proofs
Methods in com.exonum.binding.common.proofs with parameters of type PrimitiveSink Modifier and Type Method Description void
DbKeyCompressedFunnel. funnel(DbKey from, PrimitiveSink into)
void
DbKeyFunnel. funnel(DbKey from, PrimitiveSink into)