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

Method SetObjectType

src/bcp/message.go:24–26  ·  view source on GitHub ↗
(oc uint8)

Source from the content-addressed store, hash-verified

22}
23
24func (mt *MessageCode) SetObjectType(oc uint8) {
25 *mt = (*mt & 0x00ff) | (MessageCode(oc) << 8)
26}
27
28func (mt *MessageCode) SetOpCode(oc uint8) {
29 *mt = (*mt & 0xff00) | MessageCode(oc)

Callers 1

CodeMethod · 0.80

Calls 1

MessageCodeTypeAlias · 0.85

Tested by

no test coverage detected