Esempio n. 1
0
        public DataSpaceMap(CFStream dataSpaceMapStream)
        {
            DataSpaceMapStream = dataSpaceMapStream;
            var binaryReader = dataSpaceMapStream.ToBinaryReader();

            HeaderLength = binaryReader.ReadUInt16();
            Debug.Assert(HeaderLength == 8);
            EntryCount = binaryReader.ReadUInt16();
        }
Esempio n. 2
0
        public DataSpaceVersionInfo(CFStream versionStream)
        {
            VersionStream = versionStream;

            var binaryReader = versionStream.ToBinaryReader();

            FeatureIdentifier = new LengthPrefixPaddedUnicodeString(binaryReader);
            Debug.Assert(FeatureIdentifier.Text == "Microsoft.Container.DataSpaces");

            ReaderVersion  = new VersionData(binaryReader);
            UpdaterVersion = new VersionData(binaryReader);
            WriterVersion  = new VersionData(binaryReader);
        }