writeBlob writes calls inner with a new buffer. Once inner returns the buffer size is encoded as a varint. followed by the buffer itself.
(s *compiler.S, buf *codegen.Value, inner func(*codegen.Value))
| 611 | // writeBlob writes calls inner with a new buffer. Once inner returns the buffer |
| 612 | // size is encoded as a varint. followed by the buffer itself. |
| 613 | func (e *encoder) writeBlob(s *compiler.S, buf *codegen.Value, inner func(*codegen.Value)) { |
| 614 | innerBuf, delBuf := e.newBuf(s) |
| 615 | defer delBuf() |
| 616 | |
| 617 | inner(innerBuf) |
| 618 | |
| 619 | e.writeBuffer(s, buf, innerBuf) |
| 620 | } |
| 621 | |
| 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. |
no test coverage detected