Lines Matching refs:Encoder
22 // encoderState is the global execution state of an instance of the encoder.
27 enc *Encoder
31 buf [1 + uint64Size]byte // buffer used by the encoder; here to avoid allocation.
79 func (enc *Encoder) newEncoderState(b *encBuffer) *encoderState {
96 func (enc *Encoder) freeEncoderState(e *encoderState) {
153 // Each encoder for a composite is responsible for handling any
289 func (enc *Encoder) encodeSingle(b *encBuffer, engine *encEngine, value reflect.Value) {
306 func (enc *Encoder) encodeStruct(b *encBuffer, engine *encEngine, value reflect.Value) {
333 func (enc *Encoder) encodeArray(b *encBuffer, value reflect.Value, op encOp, elemIndir int, length int, helper encHelper) {
367 func (enc *Encoder) encodeMap(b *encBuffer, mv reflect.Value, keyOp, elemOp encOp, keyIndir, elemIndir int) {
385 func (enc *Encoder) encodeInterface(b *encBuffer, iv reflect.Value) {
470 func (enc *Encoder) encodeGobEncoder(b *encBuffer, ut *userTypeInfo, v reflect.Value) {
580 enc := info.encoder.Load().(*encEngine)
664 enc, ok := info.encoder.Load().(*encEngine)
678 enc, ok := info.encoder.Load().(*encEngine)
685 info.encoder.Store(enc)
690 func (enc *Encoder) encode(b *encBuffer, value reflect.Value, ut *userTypeInfo) {