Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
129
func
(h MessageHeader) Code() (ret MessageCode) {
130
ret.SetObjectType(h[0])
131
ret.SetOpCode(h[1])
132
return
ret
133
}
134
135
func
(h MessageHeader) BodyLen() int {
136
return
int(binary.LittleEndian.Uint32(h[4:]))
Callers
7
TestHeader
Function · 0.95
Post
Function · 0.80
Get
Function · 0.80
doAsk
Function · 0.80
ServeBCP
Method · 0.80
TestMessageReadWrite
Function · 0.80
TestPermissionWireError
Function · 0.80
Calls
2
SetObjectType
Method · 0.80
SetOpCode
Method · 0.80
Tested by
3
TestHeader
Function · 0.76
TestMessageReadWrite
Function · 0.64
TestPermissionWireError
Function · 0.64