Record Class Ed25519SignatureOffsets
java.lang.Object
java.lang.Record
software.sava.solana.programs.ed25519.Ed25519SignatureOffsets
public record Ed25519SignatureOffsets(int signatureOffset, int signatureInstructionIndex, int publicKeyOffset, int publicKeyInstructionIndex, int messageDataOffset, int messageDataSize, int messageInstructionIndex)
extends Record
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionEd25519SignatureOffsets(int signatureOffset, int signatureInstructionIndex, int publicKeyOffset, int publicKeyInstructionIndex, int messageDataOffset, int messageDataSize, int messageInstructionIndex) Creates an instance of aEd25519SignatureOffsetsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of themessageDataOffsetrecord component.intReturns the value of themessageDataSizerecord component.intReturns the value of themessageInstructionIndexrecord component.intReturns the value of thepublicKeyInstructionIndexrecord component.intReturns the value of thepublicKeyOffsetrecord component.static Ed25519SignatureOffsetsread(byte[] data, int offset) static Ed25519SignatureOffsets[]readVector(byte[] data, int offset) intReturns the value of thesignatureInstructionIndexrecord component.intReturns the value of thesignatureOffsetrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
BYTES
public static final int BYTES- See Also:
-
-
Constructor Details
-
Ed25519SignatureOffsets
public Ed25519SignatureOffsets(int signatureOffset, int signatureInstructionIndex, int publicKeyOffset, int publicKeyInstructionIndex, int messageDataOffset, int messageDataSize, int messageInstructionIndex) Creates an instance of aEd25519SignatureOffsetsrecord class.- Parameters:
signatureOffset- the value for thesignatureOffsetrecord componentsignatureInstructionIndex- the value for thesignatureInstructionIndexrecord componentpublicKeyOffset- the value for thepublicKeyOffsetrecord componentpublicKeyInstructionIndex- the value for thepublicKeyInstructionIndexrecord componentmessageDataOffset- the value for themessageDataOffsetrecord componentmessageDataSize- the value for themessageDataSizerecord componentmessageInstructionIndex- the value for themessageInstructionIndexrecord component
-
-
Method Details
-
read
-
readVector
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with '=='. -
signatureOffset
public int signatureOffset()Returns the value of thesignatureOffsetrecord component.- Returns:
- the value of the
signatureOffsetrecord component
-
signatureInstructionIndex
public int signatureInstructionIndex()Returns the value of thesignatureInstructionIndexrecord component.- Returns:
- the value of the
signatureInstructionIndexrecord component
-
publicKeyOffset
public int publicKeyOffset()Returns the value of thepublicKeyOffsetrecord component.- Returns:
- the value of the
publicKeyOffsetrecord component
-
publicKeyInstructionIndex
public int publicKeyInstructionIndex()Returns the value of thepublicKeyInstructionIndexrecord component.- Returns:
- the value of the
publicKeyInstructionIndexrecord component
-
messageDataOffset
public int messageDataOffset()Returns the value of themessageDataOffsetrecord component.- Returns:
- the value of the
messageDataOffsetrecord component
-
messageDataSize
public int messageDataSize()Returns the value of themessageDataSizerecord component.- Returns:
- the value of the
messageDataSizerecord component
-
messageInstructionIndex
public int messageInstructionIndex()Returns the value of themessageInstructionIndexrecord component.- Returns:
- the value of the
messageInstructionIndexrecord component
-