Clarifications on NIO bytebuffer capacity

Yeah, please do compare the bytes in the buffer. Right now you’re confirming only that you have the same number of bytes, which is probably not what you care about!

1 Like