public class MetaData extends Object
| Constructor and Description |
|---|
MetaData() |
MetaData(Optional<byte[]> uid,
Optional<byte[]> additionalData) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
static MetaData |
fromBytes(byte[] bytes)
Parse meta data from bytes
|
Optional<byte[]> |
getAdditionalData() |
Optional<byte[]> |
getUid() |
int |
hashCode() |
byte[] |
toBytes()
Converts the meta data to a byte array which can parsed back using the
fromBytes(byte[]) method The
first 4 bytes is the u32 size of the uid in big endian format. |
String |
toString() |
public static MetaData fromBytes(byte[] bytes) throws CloudproofException
bytes - the meta data obtained using the toBytes() methodMetaDataCloudproofException - if the data cannot be parsedpublic Optional<byte[]> getUid()
public Optional<byte[]> getAdditionalData()
public byte[] toBytes()
throws CloudproofException
fromBytes(byte[]) method The
first 4 bytes is the u32 size of the uid in big endian format.CloudproofException - if the MetaData cannot be serializedCopyright © 2022. All rights reserved.