open static fun wrap(value: ByteArray): MutableBytes48 (source)
Wrap a 48 bytes array as a mutable 48 bytes value.
IllegalArgumentException - if value.length != 48.
Return
A MutableBytes48 wrapping value.
open static fun wrap(value: ByteArray, offset: Int): MutableBytes48 (source)
Wrap a the provided array as a MutableBytes48.
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.
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].
IndexOutOfBoundsException - if offset < 0 || (value.length > 0 && offset >= value.length).
IllegalArgumentException - if length < 0 || offset + 48 > value.length.
Return
A MutableBytes48 that exposes the bytes of value from offset (inclusive) to offset + 48 (exclusive).
open static fun wrap(value: MutableBytes): MutableBytes48 (source)
Wrap a the provided value, which must be of size 48, as a MutableBytes48.
Note that value is not copied, only wrapped, and thus any future update to value will be reflected in the returned value.
IllegalArgumentException - if value.size() != 48.
Return
A MutableBytes48 that exposes the bytes of value.
open static fun wrap(value: MutableBytes, offset: Int): MutableBytes48 (source)
Wrap a slice/sub-part of the provided value as a MutableBytes48.
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.
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).
IndexOutOfBoundsException - if offset < 0 || (value.size() > 0 && offset >= value.size()).
IllegalArgumentException - if length < 0 || offset + 48 > value.size().
Return
A Bytes48 that exposes the bytes of value from offset (inclusive) to offset + 48 (exclusive).