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

Method encode

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

Source from the content-addressed store, hash-verified

149}
150
151func (o *optInfo) encode(e *encoder) {
152 e.writeUint32(uint32(len(o.name)))
153 e.writeString(o.name)
154 e.writeUint16(uint16(len(o.reqs)))
155 for _, r := range o.reqs {
156 e.writeUint16(r)
157 }
158}
159
160type errno uint32
161

Callers

nothing calls this directly

Calls 3

writeUint32Method · 0.80
writeStringMethod · 0.80
writeUint16Method · 0.80

Tested by

no test coverage detected