MCPcopy Create free account
hub / github.com/blobcache/blobcache / SetCode

Method SetCode

src/bcp/message.go:161–166  ·  view source on GitHub ↗
(code MessageCode)

Source from the content-addressed store, hash-verified

159}
160
161func (m *Message) SetCode(code MessageCode) {
162 m.buf = extendToLen(m.buf, HeaderLen)
163 h := m.Header()
164 h.SetCode(code)
165 m.setHeader(h)
166}
167
168func (m *Message) SetBody(body []byte) {
169 h := m.Header()

Callers 9

PingFunction · 0.95
PostFunction · 0.95
GetFunction · 0.95
doAskFunction · 0.95
doTellFunction · 0.95
SetErrorMethod · 0.95
TestMessageReadWriteFunction · 0.95
ServeBCPMethod · 0.45
handleAskFunction · 0.45

Calls 3

HeaderMethod · 0.95
setHeaderMethod · 0.95
extendToLenFunction · 0.85

Tested by 1

TestMessageReadWriteFunction · 0.76