Returns the number of bytes that can be read from this stream before reaching the end.
()
| 51 | * reaching the end. |
| 52 | */ |
| 53 | public int |
| 54 | remaining() { |
| 55 | return byteBuffer.remaining(); |
| 56 | } |
| 57 | |
| 58 | private void |
| 59 | require(int n) throws WireParseException{ |