public interface MutableBytes32 extends MutableBytes, Bytes32
EMPTY| Modifier and Type | Method and Description |
|---|---|
static MutableBytes32 |
create()
Create a new mutable 32 bytes value.
|
static MutableBytes32 |
wrap(byte[] value)
Wrap a 32 bytes array as a mutable 32 bytes value.
|
static MutableBytes32 |
wrap(byte[] value,
int offset)
Wrap a the provided array as a
MutableBytes32. |
static MutableBytes32 |
wrap(MutableBytes value)
Wrap a the provided value, which must be of size 32, as a
MutableBytes32. |
static MutableBytes32 |
wrap(MutableBytes value,
int offset)
Wrap a slice/sub-part of the provided value as a
MutableBytes32. |
clear, create, decrement, fill, increment, mutableSlice, of, of, set, set, setInt, setLong, wrap, wrapBuffer, wrapBuffer, wrapByteBuf, wrapByteBuf, wrapByteBuffer, wrapByteBufferand, copy, fromHexString, fromHexStringLenient, fromHexStringStrict, leftPad, mutableCopy, not, or, random, random, rightPad, shiftLeft, shiftRight, size, wrap, wrap, xorand, and, appendHexTo, appendTo, appendTo, bitLength, commonPrefix, commonPrefixLength, compareTo, concatenate, concatenate, copyTo, copyTo, fromBase64String, fromHexString, fromHexStringLenient, get, getInt, getInt, getLong, getLong, hasLeadingZero, hasLeadingZeroByte, isEmpty, isZero, minimalBytes, not, numberOfLeadingZeroBytes, numberOfLeadingZeros, numberOfTrailingZeroBytes, ofUnsignedInt, ofUnsignedInt, ofUnsignedLong, ofUnsignedLong, ofUnsignedShort, ofUnsignedShort, or, or, random, random, reverse, shiftLeft, shiftRight, slice, slice, toArray, toArray, toArrayUnsafe, toBase64String, toBigInteger, toBigInteger, toEllipsisHexString, toHexString, toInt, toInt, toLong, toLong, toQuantityHexString, toShortHexString, toString, toUnprefixedHexString, toUnsignedBigInteger, toUnsignedBigInteger, trimLeadingZeros, update, wrap, xor, xorstatic MutableBytes32 create()
MutableBytes value.static MutableBytes32 wrap(byte[] value)
wrap in interface Byteswrap in interface Bytes32wrap in interface MutableBytesvalue - The value to wrap.MutableBytes32 wrapping value.java.lang.IllegalArgumentException - if value.length != 32.static MutableBytes32 wrap(byte[] value, int offset)
MutableBytes32.
Note that value is not copied, only wrapped, and thus any future update to value within the wrapped parts
will be reflected in the returned value.
wrap in interface Bytes32value - The bytes to wrap.offset - The index (inclusive) in value of the first byte exposed by the returned value. In other
words, you will have wrap(value, i).get(0) == value[i].MutableBytes32 that exposes the bytes of value from offset (inclusive) to
offset + 32 (exclusive).java.lang.IndexOutOfBoundsException - if offset < 0 || (value.length > 0 && offset >=
value.length).java.lang.IllegalArgumentException - if length < 0 || offset + 32 > value.length.static MutableBytes32 wrap(MutableBytes value)
MutableBytes32.
Note that value is not copied, only wrapped, and thus any future update to value will be reflected in the
returned value.
value - The bytes to wrap.MutableBytes32 that exposes the bytes of value.java.lang.IllegalArgumentException - if value.size() != 32.static MutableBytes32 wrap(MutableBytes value, int offset)
MutableBytes32.
Note that the value is not copied, and thus any future update to value within the wrapped parts will be
reflected in the returned value.
value - The bytes to wrap.offset - The index (inclusive) in value of the first byte exposed by the returned value. In other
words, you will have wrap(value, i).get(0) == value.get(i).Bytes32 that exposes the bytes of value from offset (inclusive) to
offset + 32 (exclusive).java.lang.IndexOutOfBoundsException - if offset < 0 || (value.size() > 0 && offset >=
value.size()).java.lang.IllegalArgumentException - if length < 0 || offset + 32 > value.size().