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

Method writeFixed32

gapil/compiler/plugins/encoder/encoder.go:590–593  ·  view source on GitHub ↗

writeFixed32 writes a fixed size, 32-bit number to buf.

(s *compiler.S, buf, val *codegen.Value)

Source from the content-addressed store, hash-verified

588
589// writeFixed32 writes a fixed size, 32-bit number to buf.
590func (e *encoder) writeFixed32(s *compiler.S, buf, val *codegen.Value) {
591 i := s.LocalInit("i", val.Bitcast(e.T.Uint32))
592 e.AppendBuffer(s, buf, s.Scalar(uint32(4)), i.Cast(e.T.VoidPtr))
593}
594
595// writeFixed64 writes a fixed size, 64-bit number to buf.
596func (e *encoder) writeFixed64(s *compiler.S, buf, val *codegen.Value) {

Callers 1

encodeValueMethod · 0.95

Calls 5

LocalInitMethod · 0.80
BitcastMethod · 0.80
AppendBufferMethod · 0.80
ScalarMethod · 0.45
CastMethod · 0.45

Tested by

no test coverage detected