Package org.symbol.sdk.symbol.models
Class Signature
java.lang.Object
org.symbol.sdk.ByteArray
org.symbol.sdk.symbol.models.Signature
- All Implemented Interfaces:
Serializer
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Signaturedeserialize(ByteBuffer buffer) Deserializes an instance of this object from a byte payload.static SignatureParses a raw value (Signature, hex string, byte array, or SDK ByteArray) into a Signature.
-
Field Details
-
SIZE
public static final int SIZE- See Also:
-
-
Constructor Details
-
Signature
public Signature(byte[] bytes) Creates a new Signature.- Parameters:
bytes- Bytes.
-
Signature
public Signature()Creates a new Signature.
-
-
Method Details
-
parse
- Signature.parse
- Parses a raw value (Signature, hex string, byte array, or SDK ByteArray) into a Signature.
- Parameters:
rawValue- Raw value.- Returns:
- Parsed value.
-
deserialize
- Signature.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)
-