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

Method encode

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

Source from the content-addressed store, hash-verified

241func (r *repServer) code() uint32 { return cRepServer }
242
243func (r *repServer) encode(e *encoder) {
244 e.writeUint32(uint32(len(r.name)))
245 e.writeString(r.name)
246 e.writeString(r.details)
247}
248
249func (r *repServer) decode(e *encoder, l uint32) {
250 if l < 4 {

Callers

nothing calls this directly

Calls 2

writeUint32Method · 0.80
writeStringMethod · 0.80

Tested by

no test coverage detected