public int ReadFrom(byte[] buffer, int offset)
        {
            uint len = Utilities.ToUInt32LittleEndian(buffer, offset);
            ExtentLocation = Utilities.ToUInt32LittleEndian(buffer, offset + 4);

            ExtentLength = len & 0x3FFFFFFF;
            Flags = (ShortAllocationFlags)((len >> 30) & 0x3);

            return 8;
        }
        public int ReadFrom(byte[] buffer, int offset)
        {
            uint len = Utilities.ToUInt32LittleEndian(buffer, offset);

            ExtentLocation = Utilities.ToUInt32LittleEndian(buffer, offset + 4);

            ExtentLength = len & 0x3FFFFFFF;
            Flags        = (ShortAllocationFlags)((len >> 30) & 0x3);

            return(8);
        }
        public int ReadFrom(byte[] buffer, int offset)
        {
            uint len = Utilities.ToUInt32LittleEndian(buffer, offset);

            ExtentLength = len & 0x3FFFFFFF;
            Flags = (ShortAllocationFlags)((len >> 30) & 0x3);

            ExtentLocation = new LogicalBlockAddress();
            ExtentLocation.ReadFrom(buffer, offset + 4);
            ImplementationUse = Utilities.ToByteArray(buffer, offset + 10, 6);
            return 16;
        }
Beispiel #4
0
        public int ReadFrom(byte[] buffer, int offset)
        {
            uint len = Utilities.ToUInt32LittleEndian(buffer, offset);

            ExtentLength = len & 0x3FFFFFFF;
            Flags        = (ShortAllocationFlags)((len >> 30) & 0x3);

            ExtentLocation = new LogicalBlockAddress();
            ExtentLocation.ReadFrom(buffer, offset + 4);
            ImplementationUse = Utilities.ToByteArray(buffer, offset + 10, 6);
            return(16);
        }