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
else if special&0xF0 == 0xE0 { b, err := buf.ReadByte() if err != nil { return nil, err } length := ((special & 0x0F) << 8) | b skip = 2 + int(length) res, err = buf.Slice(int(length)) if err != nil { return nil, err } 这段代码在执行:length := ((special & 0x0F) << 8) | b 的时候,左移8位,由于使用byte处理,会丢失左移的8位,只能取到低8位,所以无法处理长度超过255的情况
The text was updated successfully, but these errors were encountered:
No branches or pull requests
else if special&0xF0 == 0xE0 {
b, err := buf.ReadByte()
if err != nil {
return nil, err
}
length := ((special & 0x0F) << 8) | b
skip = 2 + int(length)
res, err = buf.Slice(int(length))
if err != nil {
return nil, err
}
这段代码在执行:length := ((special & 0x0F) << 8) | b
的时候,左移8位,由于使用byte处理,会丢失左移的8位,只能取到低8位,所以无法处理长度超过255的情况
The text was updated successfully, but these errors were encountered: