Lines Matching defs:encoderState
26 type encoderState struct { struct
27 enc *Encoder
28 b *encBuffer
29 sendZero bool // encoding an array element or map key/value pair; send zero values
30 fieldnum int // the last field number written.
31 buf [1 + uint64Size]byte // buffer used by the encoder; here to avoid allocation.
32 next *encoderState // for free list
96 func (enc *Encoder) freeEncoderState(e *encoderState) {
107 func (state *encoderState) encodeUint(x uint64) {
123 func (state *encoderState) encodeInt(i int64) {
146 func (state *encoderState) update(instr *encInstr) {
174 func encBool(i *encInstr, state *encoderState, v reflect.Value) {
187 func encInt(i *encInstr, state *encoderState, v reflect.Value) {
196 func encUint(i *encInstr, state *encoderState, v reflect.Value) {
216 func encFloat(i *encInstr, state *encoderState, v reflect.Value) {
227 func encComplex(i *encInstr, state *encoderState, v reflect.Value) {
240 func encUint8Array(i *encInstr, state *encoderState, v reflect.Value) {
251 func encString(i *encInstr, state *encoderState, v reflect.Value) {
262 func encStructTerminator(i *encInstr, state *encoderState, v reflect.Value) {
356 func encodeReflectValue(state *encoderState, v reflect.Value, op encOp, indir int) {