Lines Matching refs:Decoder
13 // A Decoder reads and decodes JSON values from an input stream.
14 type Decoder struct {
26 // NewDecoder returns a new decoder that reads from r.
28 // The decoder introduces its own buffering and may
30 func NewDecoder(r io.Reader) *Decoder {
31 return &Decoder{r: r}
34 // UseNumber causes the Decoder to unmarshal a number into an interface{} as a
36 func (dec *Decoder) UseNumber() { dec.d.useNumber = true }
43 func (dec *Decoder) Decode(v interface{}) error {
75 // Buffered returns a reader of the data remaining in the Decoder's
77 func (dec *Decoder) Buffered() io.Reader {
83 func (dec *Decoder) readValue() (int, error) {
134 func (dec *Decoder) refill() error {
293 func (dec *Decoder) tokenPrepareForDecode() error {
322 func (dec *Decoder) tokenValueAllowed() bool {
330 func (dec *Decoder) tokenValueEnd() {
357 func (dec *Decoder) Token() (Token, error) {
459 func (dec *Decoder) tokenError(c byte) (Token, error) {
480 func (dec *Decoder) More() bool {
485 func (dec *Decoder) peek() (byte, error) {