Package io.nem.symbol.catapult.builders
Class ProofScalarDto
- java.lang.Object
-
- io.nem.symbol.catapult.builders.ProofScalarDto
-
- All Implemented Interfaces:
Serializer
public final class ProofScalarDto extends java.lang.Object implements Serializer
Proof scalar.
-
-
Constructor Summary
Constructors Constructor Description ProofScalarDto(java.io.DataInputStream stream)Constructor - Creates an object from stream.ProofScalarDto(java.nio.ByteBuffer proofScalar)Constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.nio.ByteBuffergetProofScalar()Gets Proof scalar.intgetSize()Gets the size of the object.static ProofScalarDtoloadFromBinary(java.io.DataInputStream stream)Creates an instance of ProofScalarDto from a stream.byte[]serialize()Serializes an object to bytes.
-
-
-
Constructor Detail
-
ProofScalarDto
public ProofScalarDto(java.nio.ByteBuffer proofScalar)
Constructor.- Parameters:
proofScalar- Proof scalar.
-
ProofScalarDto
public ProofScalarDto(java.io.DataInputStream stream)
Constructor - Creates an object from stream.- Parameters:
stream- Byte stream to use to serialize.
-
-
Method Detail
-
getProofScalar
public java.nio.ByteBuffer getProofScalar()
Gets Proof scalar.- Returns:
- Proof scalar.
-
getSize
public int getSize()
Gets the size of the object.- Specified by:
getSizein interfaceSerializer- Returns:
- Size in bytes.
-
loadFromBinary
public static ProofScalarDto loadFromBinary(java.io.DataInputStream stream)
Creates an instance of ProofScalarDto from a stream.- Parameters:
stream- Byte stream to use to serialize the object.- Returns:
- Instance of ProofScalarDto.
-
serialize
public byte[] serialize()
Serializes an object to bytes.- Specified by:
serializein interfaceSerializer- Returns:
- Serialized bytes.
-
-