# Functions
CreateMastershipArbitration returns stream message request with the specified election ID components.
DecodeValueAsUint32 decodes the specified bytes as uint32 value.
FindAction returns the named action from the specified P4Info; nil if not found.
FindActionParam returns the named action parameter from the specified action; nil if not found.
FindTable returns the named table from the specified P4Info; nil if not found.
FindTableMatchField returns the named match field from the specified table; nil if not found.
LoadP4Info loads the specified file containing protoJSON representation of a P4Info and returns its descriptor.
NewControllerMetadataCodec creates a new codec from the supplied P4 info.
NewStratumRole produces a P4 Role with stratum.P4RoleConfig, and configured using the supplied parameters.
P4InfoBytes serializes the given P4 info structure into prototext bytes.
TimeBasedElectionID returns election ID generated from the UnixNano timestamp High contains seconds, Low contains remaining nanos.
TrimToBitwidth trims the specified bytes to the specified width.
# Structs
ControllerMetadataCodec allows basic encoding and decoding of packet out/in metadata.
PacketInMetadata carries basic packet-in metadata contents.
PacketOutMetadata carries basic packet-out metadata contents.