writeBytes writes size as a varint to buf, and then writes size bytes to buf.
(s *compiler.S, buf, size, bytes *codegen.Value)
| 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) { |
| 632 | e.writeVarint(s, buf, size) |
| 633 | e.AppendBuffer(s, buf, size, bytes) |
| 634 | } |
| 635 | |
| 636 | // encodeableGlobals returns the list API globals that are encodable. |
| 637 | func encodeableGlobals(api *semantic.API) []*semantic.Global { |
no test coverage detected