コード例 #1
0
 public Trailer(KaitaiStream p__io, MifareClassic.Sector p__parent = null, MifareClassic p__root = null) : base(p__io)
 {
     m_parent          = p__parent;
     m_root            = p__root;
     f_acBits          = false;
     f_acsInSector     = false;
     f_acCountOfChunks = false;
     _read();
 }
コード例 #2
0
 public ValidChunk(byte p_invChunk, byte p_chunk, KaitaiStream p__io, MifareClassic.Trailer.AccessConditions p__parent = null, MifareClassic p__root = null) : base(p__io)
 {
     m_parent  = p__parent;
     m_root    = p__root;
     _invChunk = p_invChunk;
     _chunk    = p_chunk;
     f_valid   = false;
     _read();
 }
コード例 #3
0
 public AcBit(byte p_i, byte p_chunk, KaitaiStream p__io, MifareClassic.Trailer.AccessConditions.Ac p__parent = null, MifareClassic p__root = null) : base(p__io)
 {
     m_parent = p__parent;
     m_root   = p__root;
     _i       = p_i;
     _chunk   = p_chunk;
     f_n      = false;
     f_b      = false;
     _read();
 }
コード例 #4
0
 public Ac(byte p_index, KaitaiStream p__io, MifareClassic.Trailer.AccessConditions p__parent = null, MifareClassic p__root = null) : base(p__io)
 {
     m_parent      = p__parent;
     m_root        = p__root;
     _index        = p_index;
     f_bits        = false;
     f_val         = false;
     f_invShiftVal = false;
     _read();
 }
コード例 #5
0
 public ChunkBitRemap(byte p_bitNo, KaitaiStream p__io, MifareClassic.Trailer.AccessConditions p__parent = null, MifareClassic p__root = null) : base(p__io)
 {
     m_parent     = p__parent;
     m_root       = p__root;
     _bitNo       = p_bitNo;
     f_shiftValue = false;
     f_chunkNo    = false;
     f_invChunkNo = false;
     _read();
 }
コード例 #6
0
 public Sector(bool p_hasManufacturer, KaitaiStream p__io, MifareClassic p__parent = null, MifareClassic p__root = null) : base(p__io)
 {
     m_parent         = p__parent;
     m_root           = p__root;
     _hasManufacturer = p_hasManufacturer;
     f_blockSize      = false;
     f_data           = false;
     f_blocks         = false;
     f_values         = false;
     _read();
 }
コード例 #7
0
 public TrailerAc(Ac p_ac, KaitaiStream p__io, MifareClassic.Trailer.AccessConditions p__parent = null, MifareClassic p__root = null) : base(p__io)
 {
     m_parent             = p__parent;
     m_root               = p__root;
     _ac                  = p_ac;
     f_canReadKeyB        = false;
     f_canWriteKeys       = false;
     f_canWriteAccessBits = false;
     f_keyBControlsWrite  = false;
     _read();
 }
コード例 #8
0
 public AccessConditions(KaitaiStream p__io, MifareClassic.Trailer p__parent = null, MifareClassic p__root = null) : base(p__io)
 {
     m_parent    = p__parent;
     m_root      = p__root;
     f_dataAcs   = false;
     f_remaps    = false;
     f_acsRaw    = false;
     f_trailerAc = false;
     f_chunks    = false;
     _read();
 }
コード例 #9
0
 public ValueBlock(KaitaiStream p__io, MifareClassic.Sector.Values p__parent = null, MifareClassic p__root = null) : base(p__io)
 {
     m_parent     = p__parent;
     m_root       = p__root;
     f_addr       = false;
     f_addrValid  = false;
     f_valid      = false;
     f_valueValid = false;
     f_value      = false;
     _read();
 }
コード例 #10
0
 public DataAc(Ac p_ac, KaitaiStream p__io, MifareClassic.Trailer.AccessConditions p__parent = null, MifareClassic p__root = null) : base(p__io)
 {
     m_parent             = p__parent;
     m_root               = p__root;
     _ac                  = p_ac;
     f_readKeyARequired   = false;
     f_writeKeyBRequired  = false;
     f_writeKeyARequired  = false;
     f_readKeyBRequired   = false;
     f_decrementAvailable = false;
     f_incrementAvailable = false;
     _read();
 }
コード例 #11
0
 public Key(KaitaiStream p__io, MifareClassic.Trailer p__parent = null, MifareClassic p__root = null) : base(p__io)
 {
     m_parent = p__parent;
     m_root   = p__root;
     _read();
 }
コード例 #12
0
 public Manufacturer(KaitaiStream p__io, MifareClassic.Sector p__parent = null, MifareClassic p__root = null) : base(p__io)
 {
     m_parent = p__parent;
     m_root   = p__root;
     _read();
 }
コード例 #13
0
 public MifareClassic(KaitaiStream p__io, KaitaiStruct p__parent = null, MifareClassic p__root = null) : base(p__io)
 {
     m_parent = p__parent;
     m_root   = p__root ?? this;
     _read();
 }