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

Method read

classpath/java/net/Socket.java:77–85  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

75 }
76
77 @Override
78 public int read() throws IOException {
79 byte[] buffer = new byte[1];
80 int size = recv(sock, buffer, 0, 1);
81 if (size == 0) {
82 return -1;
83 }
84 return buffer[0];
85 }
86
87 @Override
88 public int read(byte[] buffer) throws IOException {

Callers

nothing calls this directly

Calls 2

minMethod · 0.95
recvMethod · 0.80

Tested by

no test coverage detected