package
1.0.0-rc.3
Repository: https://github.com/iotaledger/hive.go.git
Documentation: pkg.go.dev

# Functions

ParseHeader parses the given buffer to a Header.
WriteHeader writes a TLV header into the given Writer.

# Constants

HeaderBytesLength defines the amount of bytes making up the protocol TLV packet header.
HeaderLengthByteLength defines the amount of bytes dedicated for the message length denotation in the packet header.
HeaderTypeBytesLength defines the amount of bytes dedicated for the message type in the packet header.
MessageTypeHeader is the unique id of a tlv header.

# Variables

ErrInvalidMessageLength is returned when a packet advertises a message length which is invalid for the given message type.
HeaderMessageDefinition is the message header sent in each message denoting the TLV fields.

# Structs

Header includes the definition of the message and its bytes length.