()
| 17 | import "github.com/google/gapid/core/codegen" |
| 18 | |
| 19 | func (c *C) declareBufferFuncs() { |
| 20 | // Note these function names are intentionally different from those declared |
| 21 | // in runtime.h. These are reimplemented by the compiler so they can be |
| 22 | // inlined. |
| 23 | c.buf.init = c.M.Function(c.T.Void, "gapil_init_buffer", c.T.CtxPtr, c.T.BufPtr, c.T.Uint32). |
| 24 | Inline(). |
| 25 | LinkPrivate() |
| 26 | |
| 27 | c.buf.term = c.M.Function(c.T.Void, "gapil_term_buffer", c.T.BufPtr). |
| 28 | Inline(). |
| 29 | LinkPrivate() |
| 30 | |
| 31 | c.buf.append = c.M.Function(c.T.Void, "gapil_apnd_buffer", c.T.BufPtr, c.T.Uint32, c.T.VoidPtr). |
| 32 | Inline(). |
| 33 | LinkPrivate() |
| 34 | } |
| 35 | |
| 36 | func (c *C) buildBufferFuncs() { |
| 37 | c.Build(c.buf.init, func(s *S) { |
no test coverage detected