Lines Matching defs:buffer
60 byte[] buffer = new byte[1];
61 int result = socket.read(buffer, 0, 1);
62 return (-1 == result) ? result : buffer[0] & 0xFF;
66 public int read(byte[] buffer) throws IOException {
67 return read(buffer, 0, buffer.length);
71 public int read(byte[] buffer, int offset, int count) throws IOException {
72 if (null == buffer) {
80 if (0 > offset || offset >= buffer.length) {
84 if (0 > count || offset + count > buffer.length) {
88 return socket.read(buffer, offset, count);