Exemplo n.º 1
0
 internal OperationRecord(byte[] bytes)
 {
     LSN              = BitConverter.ToUInt64(bytes, 0);
     PreviousLSN      = BitConverter.ToUInt64(bytes, 8);
     ClientUndoLSN    = BitConverter.ToUInt64(bytes, 16);
     ClientDataLength = BitConverter.ToUInt32(bytes, 24);
     ClientID         = BitConverter.ToUInt32(bytes, 28);
     RecordType       = BitConverter.ToUInt32(bytes, 32);
     TransactionID    = BitConverter.ToUInt32(bytes, 36);
     Flags            = BitConverter.ToUInt16(bytes, 40);
     RedoOP           = (OPERATION_CODE)BitConverter.ToUInt16(bytes, 48);
     UndoOP           = (OPERATION_CODE)BitConverter.ToUInt16(bytes, 50);
     RedoOffset       = BitConverter.ToUInt16(bytes, 52);
     RedoLength       = BitConverter.ToUInt16(bytes, 54);
     UndoOffset       = BitConverter.ToUInt16(bytes, 56);
     UndoLength       = BitConverter.ToUInt16(bytes, 58);
     TargetAttribute  = BitConverter.ToUInt16(bytes, 60);
     LCNtoFollow      = BitConverter.ToUInt16(bytes, 62);
     RecordOffset     = BitConverter.ToUInt16(bytes, 64);
     AttrOffset       = BitConverter.ToUInt16(bytes, 66);
     MFTClusterIndex  = BitConverter.ToUInt16(bytes, 68);
     TargetVCN        = BitConverter.ToUInt32(bytes, 72);
     TargetLCN        = BitConverter.ToUInt32(bytes, 80);
 }
Exemplo n.º 2
0
 internal OperationRecord(byte[] bytes)
 {
     LSN = BitConverter.ToUInt64(bytes, 0);
     PreviousLSN = BitConverter.ToUInt64(bytes, 8);
     ClientUndoLSN = BitConverter.ToUInt64(bytes, 16);
     ClientDataLength = BitConverter.ToUInt32(bytes, 24);
     ClientID = BitConverter.ToUInt32(bytes, 28);
     RecordType = BitConverter.ToUInt32(bytes, 32);
     TransactionID = BitConverter.ToUInt32(bytes, 36);
     Flags = BitConverter.ToUInt16(bytes, 40);
     RedoOP = (OPERATION_CODE)BitConverter.ToUInt16(bytes, 48);
     UndoOP = (OPERATION_CODE)BitConverter.ToUInt16(bytes, 50);
     RedoOffset = BitConverter.ToUInt16(bytes, 52);
     RedoLength = BitConverter.ToUInt16(bytes, 54);
     UndoOffset = BitConverter.ToUInt16(bytes, 56);
     UndoLength = BitConverter.ToUInt16(bytes, 58);
     TargetAttribute = BitConverter.ToUInt16(bytes, 60);
     LCNtoFollow = BitConverter.ToUInt16(bytes, 62);
     RecordOffset = BitConverter.ToUInt16(bytes, 64);
     AttrOffset = BitConverter.ToUInt16(bytes, 66);
     MFTClusterIndex = BitConverter.ToUInt16(bytes, 68);
     TargetVCN = BitConverter.ToUInt32(bytes, 72);
     TargetLCN = BitConverter.ToUInt32(bytes, 80);
 }