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

Function MarshalJoinAcceptPayload

pkg/encoding/lorawan/messages.go:336–341  ·  view source on GitHub ↗

MarshalJoinAcceptPayload returns encoded msg.

(msg *ttnpb.JoinAcceptPayload)

Source from the content-addressed store, hash-verified

334
335// MarshalJoinAcceptPayload returns encoded msg.
336func MarshalJoinAcceptPayload(msg *ttnpb.JoinAcceptPayload) ([]byte, error) {
337 if msg.GetCfList() != nil {
338 return AppendJoinAcceptPayload(make([]byte, 0, 28), msg)
339 }
340 return AppendJoinAcceptPayload(make([]byte, 0, 12), msg)
341}
342
343// UnmarshalJoinAcceptPayload unmarshals b into msg.
344func UnmarshalJoinAcceptPayload(b []byte, msg *ttnpb.JoinAcceptPayload) error {

Calls 2

AppendJoinAcceptPayloadFunction · 0.85
GetCfListMethod · 0.45