1
0
mirror of https://github.com/fumiama/go-base16384.git synced 2026-06-05 00:32:52 +08:00

fix: encoder/decoder

This commit is contained in:
源文雨
2025-10-27 22:26:01 +08:00
parent d548cdd86f
commit 2840c604c1
7 changed files with 240 additions and 87 deletions

View File

@@ -14,10 +14,6 @@ func NewDecoder(r io.Reader) *Decoder {
return &Decoder{r: r}
}
func NewBufferedDecoder(b []byte) *Decoder {
return &Decoder{b: b}
}
func (d *Decoder) Read(p []byte) (n int, err error) {
i := len(d.b)
if i == 0 && d.r == nil {