MarshalJoinAcceptPayload returns encoded msg.
(msg *ttnpb.JoinAcceptPayload)
| 334 | |
| 335 | // MarshalJoinAcceptPayload returns encoded msg. |
| 336 | func 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. |
| 344 | func UnmarshalJoinAcceptPayload(b []byte, msg *ttnpb.JoinAcceptPayload) error { |