MCPcopy
hub / github.com/aceld/zinx / Init

Method Init

zpack/message.go:37–42  ·  view source on GitHub ↗
(ID uint32, data []byte)

Source from the content-addressed store, hash-verified

35}
36
37func (msg *Message) Init(ID uint32, data []byte) {
38 msg.ID = ID
39 msg.Data = data
40 msg.rawData = data
41 msg.DataLen = uint32(len(data))
42}
43
44func (msg *Message) GetDataLen() uint32 {
45 return msg.DataLen

Callers 1

initFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected