public abstract class Leb128ByteArray extends Object implements Leb128Serializable
| Modifier and Type | Field and Description |
|---|---|
protected byte[] |
bytes |
protected static int |
FIXED_SIZE |
| Modifier | Constructor and Description |
|---|---|
protected |
Leb128ByteArray() |
|
Leb128ByteArray(byte[] bytes) |
|
Leb128ByteArray(int len)
Generate a random array of len bytes
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
int |
fixedSize()
If -1, the array is of variable size and it must be read as an LEB128 first; if not use the given value
|
byte[] |
getBytes() |
int |
hashCode() |
void |
readObject(InputStream in) |
String |
toString() |
void |
writeObject(OutputStream out) |
protected static final int FIXED_SIZE
protected byte[] bytes
protected Leb128ByteArray()
public Leb128ByteArray(byte[] bytes)
public Leb128ByteArray(int len)
len - the length of the arraypublic int fixedSize()
public byte[] getBytes()
public void writeObject(OutputStream out) throws CloudproofException
writeObject in interface Leb128SerializableCloudproofExceptionpublic void readObject(InputStream in) throws CloudproofException
readObject in interface Leb128SerializableCloudproofExceptionCopyright © 2022. All rights reserved.