Lines Matching defs:dataLength

223      * value Nc is taken as dataLength. If <code>dataLength</code>
236 * @param dataLength the number of the data bytes in the command body
238 * @throws NullPointerException if data is null and dataLength is not 0
239 * @throws IllegalArgumentException if dataOffset or dataLength are
240 * negative or if dataOffset + dataLength are greater than data.length
241 * or if dataLength is greater than 65535
244 int dataOffset, int dataLength) {
245 this(cla, ins, p1, p2, data, dataOffset, dataLength, 0);
358 * <code>dataLength</code>.
372 * @param dataLength the number of the data bytes in the command body
375 * @throws NullPointerException if data is null and dataLength is not 0
376 * @throws IllegalArgumentException if dataOffset or dataLength are
377 * negative or if dataOffset + dataLength are greater than data.length,
379 * or if dataLength is greater than 65535
382 int dataOffset, int dataLength, int ne) {
383 checkArrayBounds(data, dataOffset, dataLength);
384 if (dataLength > 65535) {
385 throw new IllegalArgumentException("dataLength is too large");
394 this.nc = dataLength;
395 if (dataLength == 0) {
429 if (dataLength <= 255) {
431 apdu = new byte[4 + 1 + dataLength];
433 apdu[4] = (byte)dataLength;
435 System.arraycopy(data, dataOffset, apdu, 5, dataLength);
438 apdu = new byte[4 + 3 + dataLength];
441 apdu[5] = (byte)(dataLength >> 8);
442 apdu[6] = (byte)dataLength;
444 System.arraycopy(data, dataOffset, apdu, 7, dataLength);
448 if ((dataLength <= 255) && (ne <= 256)) {
450 apdu = new byte[4 + 2 + dataLength];
452 apdu[4] = (byte)dataLength;
454 System.arraycopy(data, dataOffset, apdu, 5, dataLength);
458 apdu = new byte[4 + 5 + dataLength];
461 apdu[5] = (byte)(dataLength >> 8);
462 apdu[6] = (byte)dataLength;
464 System.arraycopy(data, dataOffset, apdu, 7, dataLength);