SetPayload sets the payload within the a notehubMessage data structure
(payload []byte)
| 642 | |
| 643 | // SetPayload sets the payload within the a notehubMessage data structure |
| 644 | func (msg *notehubMessage) SetPayload(payload []byte) { |
| 645 | // Set native form |
| 646 | if msg.nf == nil { |
| 647 | msg.nf = &nf{} |
| 648 | } |
| 649 | msg.nf.Payload = &payload |
| 650 | |
| 651 | // Set compressed form |
| 652 | if msg.cf == nil { |
| 653 | msg.cf = &cf{} |
| 654 | } |
| 655 | msg.cf.Payload = payload |
| 656 | } |
| 657 | |
| 658 | // GetPayload gets the payload from within the a notehubMessage |
| 659 | func (msg *notehubMessage) GetPayload() (payload []byte) { |
no outgoing calls
no test coverage detected