WriteBytes writes the bytes given.
(val []byte)
| 205 | |
| 206 | // WriteBytes writes the bytes given. |
| 207 | func (rw *WireRW) WriteBytes(val []byte) *WireRW { |
| 208 | _, _ = rw.buf.Write(val) |
| 209 | return rw |
| 210 | } |
| 211 | |
| 212 | // Reserve ensures that there are at least N bytes in the buffer, which can prevent reallocations if the space needed is |
| 213 | // known upfront. |
no test coverage detected