Home | History | Annotate | Download | only in base64

Lines Matching refs:dbuf

154 			dbuf := make([]byte, tt.enc.DecodedLen(len(encoded)))
155 count, err := tt.enc.Decode(dbuf, []byte(encoded))
158 testEqual(t, "Decode(%q) = %q, want %q", encoded, string(dbuf[0:count]), p.decoded)
160 dbuf, err = tt.enc.DecodeString(encoded)
162 testEqual(t, "DecodeString(%q) = %q, want %q", string(dbuf), p.decoded)
170 dbuf := make([]byte, StdEncoding.DecodedLen(len(p.encoded)))
171 count, err := decoder.Read(dbuf)
176 testEqual(t, "Decoding of %q = %q, want %q", p.encoded, string(dbuf[0:count]), p.decoded)
178 count, err = decoder.Read(dbuf)
233 dbuf := make([]byte, StdEncoding.DecodedLen(len(tc.input)))
234 _, err := StdEncoding.Decode(dbuf, []byte(tc.input))