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

Function MarshalMACPayload

pkg/encoding/lorawan/messages.go:156–158  ·  view source on GitHub ↗

MarshalMACPayload returns encoded msg.

(msg *ttnpb.MACPayload, isUplink bool)

Source from the content-addressed store, hash-verified

154
155// MarshalMACPayload returns encoded msg.
156func MarshalMACPayload(msg *ttnpb.MACPayload, isUplink bool) ([]byte, error) {
157 return AppendMACPayload(make([]byte, 0, 1), msg, isUplink)
158}
159
160// UnmarshalMACPayload unmarshals b into msg.
161func UnmarshalMACPayload(b []byte, msg *ttnpb.MACPayload, isUplink bool) error {

Callers

nothing calls this directly

Calls 1

AppendMACPayloadFunction · 0.85

Tested by

no test coverage detected