MCPcopy Create free account
hub / github.com/google/gapid / writeBytes

Method writeBytes

gapil/compiler/plugins/encoder/encoder.go:631–634  ·  view source on GitHub ↗

writeBytes writes size as a varint to buf, and then writes size bytes to buf.

(s *compiler.S, buf, size, bytes *codegen.Value)

Source from the content-addressed store, hash-verified

629
630// writeBytes writes size as a varint to buf, and then writes size bytes to buf.
631func (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.
637func encodeableGlobals(api *semantic.API) []*semantic.Global {

Callers 2

encodeValueMethod · 0.95
writeBufferMethod · 0.95

Calls 2

writeVarintMethod · 0.95
AppendBufferMethod · 0.80

Tested by

no test coverage detected