writeBuffer writes the size of buffer src to dst as a varint to dst, and then writes the src buffer data to dst.
(s *compiler.S, dst, src *codegen.Value)
| 622 | // writeBuffer writes the size of buffer src to dst as a varint to dst, and |
| 623 | // then writes the src buffer data to dst. |
| 624 | func (e *encoder) writeBuffer(s *compiler.S, dst, src *codegen.Value) { |
| 625 | size := src.Index(0, compiler.BufSize).Load() |
| 626 | bytes := src.Index(0, compiler.BufData).Load() |
| 627 | e.writeBytes(s, dst, size, bytes) |
| 628 | } |
| 629 | |
| 630 | // writeBytes writes size as a varint to buf, and then writes size bytes to buf. |
| 631 | func (e *encoder) writeBytes(s *compiler.S, buf, size, bytes *codegen.Value) { |
no test coverage detected