13 lines
183 B
Go
13 lines
183 B
Go
|
// +build !go1.8
|
||
|
|
||
|
package capnp
|
||
|
|
||
|
func (e *Encoder) write(bufs [][]byte) error {
|
||
|
for _, b := range bufs {
|
||
|
if _, err := e.w.Write(b); err != nil {
|
||
|
return err
|
||
|
}
|
||
|
}
|
||
|
return nil
|
||
|
}
|