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

Method encode

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

Source from the content-addressed store, hash-verified

542}
543
544func (r *simpleReply) encode(e *encoder) {
545 e.writeUint32(simpleReplyMagic)
546 e.writeUint32(r.errno)
547 e.writeUint64(r.handle)
548 e.write(r.data)
549}
550
551func (r *simpleReply) decode(e *encoder) Error {
552 if e.uint32() != simpleReplyMagic {

Callers 1

respondErrFunction · 0.95

Calls 3

writeUint32Method · 0.80
writeUint64Method · 0.80
writeMethod · 0.80

Tested by

no test coverage detected