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

Method AppendBuffer

gapil/compiler/buffer.go:90–92  ·  view source on GitHub ↗

AppendBuffer appends bytes to the buffer. size must be of type uint32. bytes must be of type void* (alias of uint8*).

(s *S, bufPtr, size, bytes *codegen.Value)

Source from the content-addressed store, hash-verified

88// size must be of type uint32.
89// bytes must be of type void* (alias of uint8*).
90func (c *C) AppendBuffer(s *S, bufPtr, size, bytes *codegen.Value) {
91 s.Call(c.buf.append, bufPtr, size, bytes)
92}
93
94// AppendBufferData appends a data to the buffer from the given pointer.
95func (c *C) AppendBufferData(s *S, bufPtr, ptr *codegen.Value) {

Callers 5

AppendBufferDataMethod · 0.95
buildWriteFuncsMethod · 0.80
writeFixed32Method · 0.80
writeFixed64Method · 0.80
writeBytesMethod · 0.80

Calls 1

CallMethod · 0.65

Tested by

no test coverage detected