Lines Matching defs:Decode
34 // ErrLength reports an attempt to decode an odd-length input
35 // using Decode or DecodeString.
50 // Decode decodes src into DecodedLen(len(src)) bytes,
53 // Decode expects that src contain only hexadecimal
55 // If the input is malformed, Decode returns the number
57 func Decode(dst, src []byte) (int, error) {
111 // because the decode loop increments by one and then the 'seen' byte is not used anymore.
112 n, err := Decode(src, src)
170 // Fill internal buffer with sufficient bytes to decode
185 // Decode internal buffer into output buffer
189 numDec, err := Decode(p, d.in[:len(p)*2])
192 d.in, d.err = nil, err // Decode error; discard input remainder