private void WriteDeferableContent(BamlDeferableContent node) { _blob.Write(ref _pos, (byte)RecordType.DeferableContentStart); _pos += 4; BeginScope(node); }
private void WriteDeferableContentEnd(BamlDeferableContent node) { int position = _recordToPosition[node]; position++; // Record type int size = _pos - (position + 4); _blob.Write(ref position, (int)size); }
private void ReadDeferableContent() { var node = new BamlDeferableContent(); int contentByteSize = _accessor.ReadInt32(); AddNode(node); long streamLength = _accessor.Position + contentByteSize; BeginScope(node, streamLength); }
private void BeginScope(BamlDeferableContent block, long streamLength) { var scope = new Scope() { Block = block, Length = streamLength, DefKeys = new List <DefKeyNode>(), }; _scopeStack.Push(_currentScope); _currentScope = scope; _scopes.Add(scope); }
private void BeginScope(BamlDeferableContent block) { var scope = new Scope() { Block = block, Current = block.FirstChild, DefKeys = new List <DefKeyNode>(), }; _scopeStack.Push(_currentScope); _currentScope = scope; _scopes.Add(scope); }