Example #1
0
        private void parseRecords()
        {
            Records = new PrimaryRecord[Header.SlotCnt];

            int cnt = 0;
            foreach (short recordOffset in SlotArray)
                Records[cnt++] = new PrimaryRecord(ArrayHelper.SliceArray(RawBytes, recordOffset, RawBytes.Length - recordOffset), this);
        }
Example #2
0
        public void TestNoVarLength()
        {
            var a = new byte[] { 0x10, 0x00, 0x06, 0x00, 0x16, 0x33,0x01, 0x00, 0x00 };
            var record = new PrimaryRecord(a, null);

            Assert.IsFalse(record.IsGhostForwardedRecord);
            Assert.IsTrue(record.HasNullBitmap);
            Assert.AreEqual(RecordType.Primary, record.Type);
            Assert.AreEqual(2, record.FixedLengthData.Length);
            Assert.IsFalse(record.HasVariableLengthColumns);
            Assert.IsFalse(record.HasVersioningInformation);
        }