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

Method SetOpCode

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

Source from the content-addressed store, hash-verified

26}
27
28func (mt *MessageCode) SetOpCode(oc uint8) {
29 *mt = (*mt & 0xff00) | MessageCode(oc)
30}
31
32func (mt MessageCode) IsError() bool {
33 return mt > MT_OK

Callers 1

CodeMethod · 0.80

Calls 1

MessageCodeTypeAlias · 0.85

Tested by

no test coverage detected