Lines Matching refs:off
135 private long getLong(byte[] buffer, int off) {
137 l |= (buffer[off] & 0xFF);
138 l |= (buffer[off + 1] & 0xFF) << 8;
139 l |= (buffer[off + 2] & 0xFF) << 16;
140 l |= ((long) (buffer[off + 3] & 0xFF)) << 24;
144 private int getShort(byte[] buffer, int off) {
145 return (buffer[off] & 0xFF) | ((buffer[off + 1] & 0xFF) << 8);
154 * @param off
160 public int read(byte[] buffer, int off, int nbytes) throws IOException {
168 if (off > buffer.length || nbytes < 0 || off < 0
169 || buffer.length - off < nbytes) {
175 bytesRead = super.read(buffer, off, nbytes);
181 crc.update(buffer, off, bytesRead);