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

Method encode

types.go:340–343  ·  view source on GitHub ↗
(e *encoder)

Source from the content-addressed store, hash-verified

338func (r *infoDescription) code() uint32 { return cRepInfo }
339
340func (r *infoDescription) encode(e *encoder) {
341 e.writeUint16(cInfoDescription)
342 e.writeString(r.description)
343}
344
345func (r *infoDescription) decode(e *encoder, l uint32) {
346 if l > (4 << 10) {

Callers

nothing calls this directly

Calls 2

writeUint16Method · 0.80
writeStringMethod · 0.80

Tested by

no test coverage detected