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

Method Code

src/bcp/message.go:129–133  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

127}
128
129func (h MessageHeader) Code() (ret MessageCode) {
130 ret.SetObjectType(h[0])
131 ret.SetOpCode(h[1])
132 return ret
133}
134
135func (h MessageHeader) BodyLen() int {
136 return int(binary.LittleEndian.Uint32(h[4:]))

Callers 7

TestHeaderFunction · 0.95
PostFunction · 0.80
GetFunction · 0.80
doAskFunction · 0.80
ServeBCPMethod · 0.80
TestMessageReadWriteFunction · 0.80
TestPermissionWireErrorFunction · 0.80

Calls 2

SetObjectTypeMethod · 0.80
SetOpCodeMethod · 0.80

Tested by 3

TestHeaderFunction · 0.76
TestMessageReadWriteFunction · 0.64
TestPermissionWireErrorFunction · 0.64