| Modifier and Type | Method and Description |
|---|---|
static MutableBytes |
MutableBytes.allocate(int length)
Creates a new instance with an empty array filled with zeros.
|
static MutableBytes |
MutableBytes.allocate(int length,
byte defaultValue)
Creates a new instance with an empty array filled with given defaultValue
|
MutableBytes |
MutableBytes.fill(byte fillByte)
Fills the internal byte array with provided byte
|
MutableBytes |
Bytes.mutable()
Returns a mutable version of this instance with sharing the same underlying byte-array.
|
MutableBytes |
MutableBytes.overwrite(byte[] newArray)
Uses given array to overwrite internal array
|
MutableBytes |
MutableBytes.overwrite(byte[] newArray,
int offsetInternalArray)
Uses given array to overwrite internal array.
|
MutableBytes |
MutableBytes.overwrite(Bytes newBytes)
Uses given Bytes array to overwrite internal array
|
MutableBytes |
MutableBytes.overwrite(Bytes newBytes,
int offsetInternalArray)
Uses given Bytes array to overwrite internal array.
|
MutableBytes |
MutableBytes.secureWipe()
Fills the internal byte array with random data provided by
SecureRandom |
MutableBytes |
MutableBytes.secureWipe(SecureRandom random)
Fills the internal byte array with random data provided by given random instance
|
MutableBytes |
MutableBytes.setByteAt(int index,
byte newByte)
Sets new byte to given index
|
MutableBytes |
MutableBytes.wipe()
Fills the internal byte array with all zeros
|
Copyright © 2017–2019. All rights reserved.