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

Method encode

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

Source from the content-addressed store, hash-verified

318func (r *infoName) code() uint32 { return cRepInfo }
319
320func (r *infoName) encode(e *encoder) {
321 e.writeUint16(cInfoName)
322 e.writeString(r.name)
323}
324
325func (r *infoName) decode(e *encoder, l uint32) {
326 if l > (4 << 10) {

Callers

nothing calls this directly

Calls 2

writeUint16Method · 0.80
writeStringMethod · 0.80

Tested by

no test coverage detected