simple write for single buffer

This commit is contained in:
Darien Raymond
2018-08-16 12:40:55 +02:00
parent fdb3a7b57d
commit 950612544b
+4
View File
@@ -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 {