/** * {@link #length} */ private int getLength() { return length.intValue(); }
public UShortArray(int length) { super(new USHORT[length]); for (int i = 0; i < length; i++) { array[i] = new USHORT(); } }
/** * @see #xPosition */ public void setXPosition(final int xPosition) { this.xPosition.set(xPosition); }
public NoteIDs(Pointer aPointer) { if (Pointer.NULL.equals(aPointer)) { noteIDs = new USHORT[0]; } else { Buffer buffer = null; for (int i = 0;; i++) { buffer = aPointer.buffer((i * USHORT.SIZE) + USHORT.SIZE); Buffer subBuffer = buffer.subBuffer(i * USHORT.SIZE, USHORT.SIZE); USHORT uShort = new USHORT(subBuffer); if (uShort.intValue() == 0L) { noteIDs = new USHORT[i]; assignBuffer(buffer); break; } } } }
public int getMixNumber() { return mixNumber.get(); }
public WfsPINData(final XfsVersion xfsVersion) { if (xfsVersion.isLT(XfsVersion.V3_00)) { add(data); keys.allocate(); pinKeys.allocate(); } else { data.allocate(); add(keys); add(pinKeys); } add(completion); }
public USHORT(Buffer aBuffer) { this(); assignBuffer(aBuffer); }
public int getCount() { return count.get(); }
private SIUStatus(final XfsVersion version) { add(device); add(sensors); add(doors); add(indicators); add(auxiliaries); add(guidLights); add(extra); if (version.isGE(XfsVersion.V3_10)) { add(powerSaveRecoveryTime); } else { powerSaveRecoveryTime.allocate(); } if (version.isGE(XfsVersion.V3_20)) { add(antiFraudModule); } else { antiFraudModule.allocate(); } }
public USHORT(Pointer p) { this(); assignBuffer(p); }
@Override public int[] get() { int result[] = new int[noteIDs.length]; for (int i = 0; i < noteIDs.length; i++) { result[i] = noteIDs[i].intValue(); } return result; } }
public byte[] data(int ctn, int dad, int sad, byte[] command) throws CTException { final String method = "data(int, int, int, byte[])"; if (LOG.isDebugEnabled()) { LOG.debug(method, "ctn=" + ctn + ",dad=" + dad + ",sad=" + sad + ",command=" + Hex.encode(command)); } ByteArray cmdBuf = new ByteArray(command); ByteArray rspBuf = new ByteArray(258); USHORT lenr = new USHORT(rspBuf.getSize()); int rc = data0(dataFunctionAddress, new USHORT(ctn), new UINT8(dad), new UINT8(sad), cmdBuf, lenr, rspBuf); CTException.throwFor(rc); byte[] rsp = new byte[lenr.intValue()]; System.arraycopy(rspBuf.toByteArray(), 0, rsp, 0, rsp.length); if (LOG.isDebugEnabled()) { LOG.debug(method, "rsp=" + Hex.encode(rsp)); } return rsp; }
/** * @see #yPosition */ public void setYPosition(final int yPosition) { this.yPosition.set(yPosition); }
public MixTableCommand(CdmService service, int mixNumber) { super(service, CdmInfoCommand.MIX_TABLE, new USHORT(mixNumber), MixTable3.class); } }
public int getNumber() { return number.get(); }
public WFSPINSTATUS(final XfsVersion xfsVersion) { add(device); add(encStat); add(extra); if (xfsVersion.isGE(XfsVersion.V3_10)) { add(guidLights); add(autoBeepModes); add(certificateState); add(devicePosition); add(powerSaveRecoveryTime); } else { guidLights.allocate(); autoBeepModes.allocate(); certificateState.allocate(); devicePosition.allocate(); powerSaveRecoveryTime.allocate(); } if (xfsVersion.isGE(XfsVersion.V3_20)) { add(antiFraudModule); } else { antiFraudModule.allocate(); } }