public int ReadFrom(byte[] buffer, int offset)
 {
     ExtentLength   = Utilities.ToUInt32LittleEndian(buffer, offset);
     ExtentLocation = new LogicalBlockAddress();
     ExtentLocation.ReadFrom(buffer, offset + 4);
     ImplementationUse = Utilities.ToByteArray(buffer, offset + 10, 6);
     return(16);
 }
 public int ReadFrom(byte[] buffer, int offset)
 {
     ExtentLength = Utilities.ToUInt32LittleEndian(buffer, offset);
     ExtentLocation = new LogicalBlockAddress();
     ExtentLocation.ReadFrom(buffer, offset + 4);
     ImplementationUse = Utilities.ToByteArray(buffer, offset + 10, 6);
     return 16;
 }
        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;
        }
Esempio n. 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);
        }