Lines Matching +refs:val +refs:len
117 * @param val the integer value. It will lose the high-order two bytes.
121 public static final void writeInt(int val, OutputStream os)
123 os.write(val>>>8);
124 os.write(val);
130 * @param val the integer value. It will lose the high-order two bytes.
134 public static final int writeInt(int val, byte[] dest, int pos) {
135 dest[pos++] = (byte)(val>>>8);
136 dest[pos++] = (byte)val;
186 * @param len the number of bytes to read
192 byte[] buffer, int offset, int len)
195 while (len > 0) {
196 temp = is.read(buffer, offset, len);
199 + len
202 len -= temp;
214 public static final String getHexBytes(byte[] bytes, int len) {
215 return getHexBytes(bytes, 0, len);
218 public static final String getHexBytes(byte[] bytes, int pos, int len) {
220 for (int i = pos; i < (pos+len); i++) {