Lines Matching defs:Encoder
33 type Encoder struct { struct
34 indent string
35 lastKind kind
36 indents []byte
37 out []byte
56 func (e *Encoder) Bytes() []byte {
61 func (e *Encoder) WriteNull() {
67 func (e *Encoder) WriteBool(b bool) {
78 func (e *Encoder) WriteString(s string) error {
140 func (e *Encoder) WriteFloat(n float64, bitSize int) {
177 func (e *Encoder) WriteInt(n int64) {
183 func (e *Encoder) WriteUint(n uint64) {
189 func (e *Encoder) StartObject() {
195 func (e *Encoder) EndObject() {
203 func (e *Encoder) WriteName(s string) error {
213 func (e *Encoder) StartArray() {
219 func (e *Encoder) EndArray() {
226 func (e *Encoder) prepareNext(next kind) {