Lines Matching defs:Decode
281 // decode is like Decode but returns an additional 'end' value, which
285 func (enc *Encoding) decode(dst, src []byte) (n int, end bool, err error) {
288 // Decode quantum using the base32 alphabet
324 // src bytes do not yield enough information to decode a dst byte.
376 // Decode decodes src using the encoding enc. It writes at most
381 func (enc *Encoding) Decode(dst, src []byte) (n int, err error) {
383 n, _, err = enc.decode(dst, src)
391 n, _, err := enc.decode(dbuf, []byte(s))
448 // Decode chunk into p, or d.out and then p if p is too small.
452 nw, d.end, err = d.enc.decode(d.outbuf[0:], d.buf[0:nr])
457 n, d.end, err = d.enc.decode(p, d.buf[0:nr])