Lines Matching +defs:val +defs:src
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;
156 * @param src the byte arra to read from
160 public static final int readInt(byte[] src, int pos) {
161 return ((0xFF & src[pos])<<8 | (0xFF & src[pos+1]));