MCPcopy Create free account
hub / github.com/Merovius/nbd / decode

Method decode

types.go:345–352  ·  view source on GitHub ↗
(e *encoder, l uint32)

Source from the content-addressed store, hash-verified

343}
344
345func (r *infoDescription) decode(e *encoder, l uint32) {
346 if l > (4 << 10) {
347 e.check(errors.New("description too large"))
348 }
349 b := make([]byte, l)
350 e.read(b)
351 r.description = string(b)
352}
353
354type infoBlockSize struct {
355 min uint32

Callers

nothing calls this directly

Calls 1

readMethod · 0.80

Tested by

no test coverage detected