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

Method SetBodyLen

src/bcp/message.go:139–141  ·  view source on GitHub ↗
(bodyLen int)

Source from the content-addressed store, hash-verified

137}
138
139func (h *MessageHeader) SetBodyLen(bodyLen int) {
140 binary.LittleEndian.PutUint32(h[4:], uint32(bodyLen))
141}
142
143type Message struct {
144 buf []byte

Callers 3

TestHeaderFunction · 0.95
SetBodyMethod · 0.80
SetSendableMethod · 0.80

Calls

no outgoing calls

Tested by 1

TestHeaderFunction · 0.76