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

Method OpCode

src/bcp/message.go:20–22  ·  view source on GitHub ↗

OpCode is the second 8 bits on the wire.

()

Source from the content-addressed store, hash-verified

18
19// OpCode is the second 8 bits on the wire.
20func (mt MessageCode) OpCode() uint8 {
21 return uint8(mt & 0xff)
22}
23
24func (mt *MessageCode) SetObjectType(oc uint8) {
25 *mt = (*mt & 0x00ff) | (MessageCode(oc) << 8)

Callers 1

SetCodeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected