@Test public void testLockControlTlv() throws Exception { LockControlTlv lockControlTlv = new LockControlTlv(lockControlData); assertEquals(0x0a, lockControlTlv.getPageAddress()); assertEquals(0x00, lockControlTlv.getByteOffset()); assertEquals(0x10, lockControlTlv.getSize()); assertEquals(0x02, lockControlTlv.getSizeInBytes()); assertEquals(0x04, lockControlTlv.getBytesPerPage()); assertEquals(0x04, lockControlTlv.getBytesLockedPerLockBit()); assertEquals(160, lockControlTlv.getPosition()); assertArrayEquals(lockControlData, lockControlTlv.toBytes()); }
public LockControlTlv() { }
LockControlTlv extends AbstractMemoryTlv { public LockControlTlv() { } }
LockControlTlv extends AbstractMemoryTlv { public LockControlTlv() { } LockControlTlv();  LockControlTlv(byte[] bytes); }
LockControlTlv extends AbstractMemoryTlv { public LockControlTlv() { } LockControlTlv();  LockControlTlv(byte[] bytes); @Override byte[] toBytes(); int getBytesLockedPerLockBit(); void setBytesLockedPerLockBit(int bytesLockedPerLockBit); int getSizeInBytes(); @Override int getSize(); }
LockControlTlv extends AbstractMemoryTlv { public LockControlTlv() { } LockControlTlv();  LockControlTlv(byte[] bytes); @Override byte[] toBytes(); int getBytesLockedPerLockBit(); void setBytesLockedPerLockBit(int bytesLockedPerLockBit); int getSizeInBytes(); @Override int getSize();  }