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

Method encode

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

Source from the content-addressed store, hash-verified

298func (r *infoExport) code() uint32 { return cRepInfo }
299
300func (r *infoExport) encode(e *encoder) {
301 e.writeUint16(cInfoExport)
302 e.writeUint64(r.size)
303 e.writeUint16(r.flags)
304}
305
306func (r *infoExport) decode(e *encoder, l uint32) {
307 if l != 10 {

Callers

nothing calls this directly

Calls 2

writeUint16Method · 0.80
writeUint64Method · 0.80

Tested by

no test coverage detected