Esempio n. 1
0
        private void WriteDocument(BamlDocument node)
        {
            _blob.Write(ref _pos, (byte)RecordType.DocumentStart);
            _blob.Write(ref _pos, (bool)node.LoadAsync);
            _blob.Write(ref _pos, (int)node.MaxAsyncRecords);
            _blob.Write(ref _pos, (bool)node.DebugBaml);

            BeginScope(node, RecordType.DocumentEnd);
        }
Esempio n. 2
0
        private void ReadDocument()
        {
            var node = new BamlDocument();

            node.LoadAsync       = _accessor.ReadBoolean();
            node.MaxAsyncRecords = _accessor.ReadInt32();
            node.DebugBaml       = _accessor.ReadBoolean();

            AddNode(node);
            BeginScope(node, RecordType.DocumentEnd);
        }