Documentation ¶
Index ¶
Constants ¶
View Source
const Length = 5
Length defines the length of a DRNG header
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Header ¶
type Header struct { PayloadType Type // message type InstanceID uint32 // identifier of the DRNG instance }
Header defines defines a DRNG payload header
func FromBytes ¶
func FromBytes(bytes []byte, optionalTargetObject ...*Header) (result Header, consumedBytes int, err error)
FromBytes unmarshals a header from a sequence of bytes. It either creates a new header or fills the optionally provided object with the parsed information.
func Parse ¶
func Parse(marshalUtil *marshalutil.MarshalUtil) (Header, error)
Parse is a wrapper for simplified unmarshaling in a byte stream using the marshalUtil package.
Click to show internal directories.
Click to hide internal directories.