Package org.symbol.sdk.symbol.models
Class Hash256
java.lang.Object
org.symbol.sdk.ByteArray
org.symbol.sdk.symbol.models.Hash256
- All Implemented Interfaces:
Serializer
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Hash256deserialize(ByteBuffer buffer) Deserializes an instance of this object from a byte payload.static Hash256Parses a raw value (Hash256, hex string, byte array, or SDK ByteArray) into a Hash256.
-
Field Details
-
SIZE
public static final int SIZE- See Also:
-
-
Constructor Details
-
Hash256
public Hash256(byte[] bytes) Creates a new Hash256.- Parameters:
bytes- Bytes.
-
Hash256
public Hash256()Creates a new Hash256.
-
-
Method Details
-
parse
- Hash256.parse
- Parses a raw value (Hash256, hex string, byte array, or SDK ByteArray) into a Hash256.
- Parameters:
rawValue- Raw value.- Returns:
- Parsed value.
-
deserialize
- Hash256.deserialize
- Deserializes an instance of this object from a byte payload.
- Parameters:
buffer- Output writer.- Returns:
- Deserialized object.
- Throws:
IndexOutOfBoundsException- if the buffer is truncated or a declared length overruns itIllegalArgumentException- if a field carries an invalid value (e.g. a reserved field or unknown discriminator)
-