MCPcopy Create free account
hub / github.com/TheThingsNetwork/lorawan-stack / MarshalMHDR

Function MarshalMHDR

pkg/encoding/lorawan/messages.go:39–41  ·  view source on GitHub ↗

MarshalMHDR returns encoded msg.

(msg *ttnpb.MHDR)

Source from the content-addressed store, hash-verified

37
38// MarshalMHDR returns encoded msg.
39func MarshalMHDR(msg *ttnpb.MHDR) ([]byte, error) {
40 return AppendMHDR(make([]byte, 0, 1), msg)
41}
42
43// UnmarshalMHDR unmarshals b into msg.
44func UnmarshalMHDR(b []byte, msg *ttnpb.MHDR) error {

Callers

nothing calls this directly

Calls 1

AppendMHDRFunction · 0.85

Tested by

no test coverage detected