Home | History | Annotate | Download | only in util

Lines Matching refs:length

27             byte[] tmp = new byte[bytes.length - 1];
29 System.arraycopy(bytes, 1, tmp, 0, tmp.length);
43 public static byte[] asUnsignedByteArray(int length, BigInteger value)
46 if (bytes.length == length)
52 int count = bytes.length - start;
54 if (count > length)
56 throw new IllegalArgumentException("standard length exceeded for value");
59 byte[] tmp = new byte[length];
60 System.arraycopy(bytes, start, tmp, tmp.length - count, count);
111 public static BigInteger fromUnsignedByteArray(byte[] buf, int off, int length)
114 if (off != 0 || length != buf.length)
116 mag = new byte[length];
117 System.arraycopy(buf, off, mag, 0, length);