Documentation ¶
Index ¶
Constants ¶
View Source
const (
// ObjectName defines the name of the dRNG object.
ObjectName = "dRNG"
)
Variables ¶
View Source
var Type = payload.Type(111)
Type defines the type of the drng payload.
Functions ¶
This section is empty.
Types ¶
type Payload ¶
Payload defines a DRNG payload.
func FromBytes ¶
func FromBytes(bytes []byte, optionalTargetObject ...*Payload) (result *Payload, consumedBytes int, err error)
FromBytes parses the marshaled version of a Payload into an object. It either returns a new Payload or fills an optionally provided Payload with the parsed information.
func Parse ¶
func Parse(marshalUtil *marshalutil.MarshalUtil) (*Payload, 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.