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()); }
internal BamlImage Load() { var image = new BamlImage(); ReadHeader(image); ReadRecords(); MapKeys(); image.FirstNode = _firstRecord; return(image); }
internal BamlImageBuilder(BamlImage image) { _image = image; }