MCPcopy Create free account
hub / github.com/ReadyTalk/avian / read

Method read

classpath/java/nio/channels/Channels.java:102–111  ·  view source on GitHub ↗
(ByteBuffer b)

Source from the content-addressed store, hash-verified

100 }
101
102 public int read(ByteBuffer b) throws IOException {
103 int c = stream.read
104 (b.array(), b.arrayOffset() + b.position(), b.remaining());
105
106 if (c > 0) {
107 b.position(b.position() + c);
108 }
109
110 return c;
111 }
112 }
113
114 private static class OutputStreamChannel implements WritableByteChannel {

Callers

nothing calls this directly

Calls 5

readMethod · 0.65
arrayMethod · 0.45
arrayOffsetMethod · 0.45
positionMethod · 0.45
remainingMethod · 0.45

Tested by

no test coverage detected