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

Method writeFixed64

gapil/compiler/plugins/encoder/encoder.go:596–599  ·  view source on GitHub ↗

writeFixed64 writes a fixed size, 64-bit number to buf.

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

Source from the content-addressed store, hash-verified

594
595// writeFixed64 writes a fixed size, 64-bit number to buf.
596func (e *encoder) writeFixed64(s *compiler.S, buf, val *codegen.Value) {
597 i := s.LocalInit("i", val.Bitcast(e.T.Uint64))
598 e.AppendBuffer(s, buf, s.Scalar(uint32(8)), i.Cast(e.T.VoidPtr))
599}
600
601// writeZigzag writes a variable length integer to buf.
602func (e *encoder) writeVarint(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