Reads a byte array of a specified length from the stream into an existing array. @param b The array to read into. @param off The offset of the array to start copying data into. @param len The number of bytes to copy. @throws WireParseException The end of the stream was reached.
(byte [] b, int off, int len)
| 192 | * @throws WireParseException The end of the stream was reached. |
| 193 | */ |
| 194 | public void |
| 195 | readByteArray(byte [] b, int off, int len) throws WireParseException { |
| 196 | require(len); |
| 197 | byteBuffer.get(b, off, len); |
| 198 | } |
| 199 | |
| 200 | /** |
| 201 | * Reads a byte array of a specified length from the stream. |
no test coverage detected