Esempio n. 1
0
        private void ReadHeader(BamlImage image)
        {
            int featureByteCount = _accessor.ReadInt32();

            image.FeatureID      = Encoding.Unicode.GetString(_accessor.ReadBytes(featureByteCount));
            image.ReaderVersion  = new VersionPair(_accessor.ReadInt16(), _accessor.ReadInt16());
            image.UpdaterVersion = new VersionPair(_accessor.ReadInt16(), _accessor.ReadInt16());
            image.WriterVersion  = new VersionPair(_accessor.ReadInt16(), _accessor.ReadInt16());
        }
Esempio n. 2
0
        internal BamlImage Load()
        {
            var image = new BamlImage();

            ReadHeader(image);

            ReadRecords();

            MapKeys();

            image.FirstNode = _firstRecord;

            return(image);
        }
Esempio n. 3
0
 internal BamlImageBuilder(BamlImage image)
 {
     _image = image;
 }