MCPcopy Create free account
hub / github.com/chrislusf/glow / LoadMessage

Function LoadMessage

util/read_write.go:22–28  ·  view source on GitHub ↗

LoadMessage load from typed channels or queues

(rawdata []byte)

Source from the content-addressed store, hash-verified

20
21// LoadMessage load from typed channels or queues
22func LoadMessage(rawdata []byte) *Message {
23 m := &Message{
24 flag: ControlFlag(rawdata[len(rawdata)-1]),
25 data: rawdata[0 : len(rawdata)-1],
26 }
27 return m
28}
29
30func (m *Message) Flag() ControlFlag {
31 return m.flag

Callers 1

ReadBytesFunction · 0.85

Calls 1

ControlFlagTypeAlias · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…