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

Method write

handshake.go:351–358  ·  view source on GitHub ↗
(b []byte)

Source from the content-addressed store, hash-verified

349}
350
351func (e *encoder) write(b []byte) {
352 if e.buf != nil {
353 e.buf = append(e.buf, b...)
354 return
355 }
356 _, err := e.rw.Write(b)
357 e.check(err)
358}
359
360func (e *encoder) writeString(s string) {
361 if e.buf != nil {

Callers 8

writeUint16Method · 0.95
writeUint32Method · 0.95
writeUint64Method · 0.95
encodeReplyFunction · 0.80
encodeMethod · 0.80
encodeMethod · 0.80
encodeMethod · 0.80
sendMethod · 0.80

Calls 1

WriteMethod · 0.80

Tested by

no test coverage detected