simple write for single buffer

pull/1331/head
Darien Raymond 6 years ago
parent fdb3a7b57d
commit 950612544b
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169

@ -21,6 +21,10 @@ func (w *BufferToBytesWriter) WriteMultiBuffer(mb MultiBuffer) error {
return nil
}
if len(mb) == 1 {
return WriteAllBytes(w.Writer, mb[0].Bytes())
}
bs := mb.ToNetBuffers()
for size > 0 {

Loading…
Cancel
Save