MCPcopy Index your code
hub / github.com/aceld/zinx / Message

Struct Message

zpack/message.go:4–9  ·  view source on GitHub ↗

Message structure for messages

Source from the content-addressed store, hash-verified

2
3// Message structure for messages
4type 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
11func NewMsgPackage(ID uint32, data []byte) *Message {
12 return &Message{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected