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
ByteBuf.slice(int index, int length)方法是从fromInex开始切割长度length的字节,而书中代码错误,当成了切割到endIndex位置,导致运行时出现IndexOutOfBoundsException异常,对初学者可能产生误导。
The text was updated successfully, but these errors were encountered:
Sorry, something went wrong.
您好,这部分我回头看看,不好意思。
@SuMiaoALi 您好,请问方便发送个 PR吗,谢谢了。
No branches or pull requests
ByteBuf.slice(int index, int length)方法是从fromInex开始切割长度length的字节,而书中代码错误,当成了切割到endIndex位置,导致运行时出现IndexOutOfBoundsException异常,对初学者可能产生误导。
书中代码测试结果:
正确示例:
The text was updated successfully, but these errors were encountered: