MarshalMACPayload returns encoded msg.
(msg *ttnpb.MACPayload, isUplink bool)
| 154 | |
| 155 | // MarshalMACPayload returns encoded msg. |
| 156 | func 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. |
| 161 | func UnmarshalMACPayload(b []byte, msg *ttnpb.MACPayload, isUplink bool) error { |
nothing calls this directly
no test coverage detected