MCPcopy Create free account
hub / github.com/PolyhedraZK/ExpanderCompilerCollection / AppendFieldElement

Method AppendFieldElement

ecgo/utils/buf.go:33–35  ·  view source on GitHub ↗
(field SimpleField, x constraint.Element)

Source from the content-addressed store, hash-verified

31}
32
33func (o *OutputBuf) AppendFieldElement(field SimpleField, x constraint.Element) {
34 o.AppendBigInt(field.SerializedLen(), field.ToBigInt(x))
35}
36
37func (o *OutputBuf) AppendUint32(x uint32) {
38 o.buf = binary.LittleEndian.AppendUint32(o.buf, x)

Callers 2

serializeInstructionFunction · 0.80
serializeInstructionFunction · 0.80

Calls 3

AppendBigIntMethod · 0.95
SerializedLenMethod · 0.65
ToBigIntMethod · 0.65

Tested by

no test coverage detected