We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
godis/util/bufio2/bufio.go
Line 119 in be1ff92
func (b *Reader) ReadFull(n int) ([]byte, error) { //return b.buf[] if b.err != nil || n == 0 { return nil, b.err } var buf = b.slice.Make(n) if _, err := io.ReadFull(bytes.NewReader(b.buf[b.rpos:]), buf); err != nil { return nil, err } b.rpos += n return buf, nil }
这里每次从缓冲区读取长度为n的buf,但未考虑b.buf读完的情况,详细看了几遍感觉还是有问题。
The text was updated successfully, but these errors were encountered:
No branches or pull requests
godis/util/bufio2/bufio.go
Line 119 in be1ff92
这里每次从缓冲区读取长度为n的buf,但未考虑b.buf读完的情况,详细看了几遍感觉还是有问题。
The text was updated successfully, but these errors were encountered: