Message structure for messages
| 2 | |
| 3 | // Message structure for messages |
| 4 | type Message struct { |
| 5 | DataLen uint32 // Length of the message |
| 6 | ID uint32 // ID of the message |
| 7 | Data []byte // Content of the message |
| 8 | rawData []byte // Raw data of the message |
| 9 | } |
| 10 | |
| 11 | func NewMsgPackage(ID uint32, data []byte) *Message { |
| 12 | return &Message{ |
nothing calls this directly
no outgoing calls
no test coverage detected