MCPcopy Create free account
hub / github.com/OpenSourcePhysics/osp / readBytes

Method readBytes

src/javajs/util/VideoReader.java:252–258  ·  view source on GitHub ↗

Read bytes into field buf. @param n number of bytes @return field bytes, filled [0,n) @throws IOException

(int n)

Source from the content-addressed store, hash-verified

250 * @throws IOException
251 */
252 protected byte[] readBytes(int n) throws IOException {
253 pt += n;
254 if (n > buf.length)
255 buf = new byte[n << 1];
256 is.read(buf, 0, n);
257 return buf;
258 }
259
260 protected long readUIntLong() throws IOException {
261 pt += 4;

Callers 1

readStringMethod · 0.95

Calls 1

readMethod · 0.65

Tested by

no test coverage detected