Esempio n. 1
0
        private void ReadAttributes(byte[] stream, uint maxLength, int offset)
        {
            int offsetCpy = offset;

            while (true)
            {
                AttributeTypeCode attType = AttributeRecord.GetTypeCode(stream, offsetCpy);
                if (attType == AttributeTypeCode.EndOfAttributes)
                {
                    break;
                }

                uint length = AttributeRecord.GetRecordLength(stream, offsetCpy);

                AttributeRecord attributeRecord = AttributeRecord.ReadSingleAttribute(stream, (int)length, offsetCpy);
                attributeRecord.RecordOwner = MftSegmentReference;
                attributes.Add(attributeRecord);

                offsetCpy += attributeRecord.RecordLength;
            }
        }