private void WriteLiteralContent(BamlLiteralContent node) { BeginVarSize(); _blob.WriteLengthPrefixedString(ref _pos, (string)node.Value); _blob.Write(ref _pos, (int)node.Num1); _blob.Write(ref _pos, (int)node.Num2); WriteVarSize(RecordType.LiteralContent); }
private void ReadLiteralContent() { ReadRecordSize(); var node = new BamlLiteralContent(); node.Value = _accessor.ReadLengthPrefixedString(Encoding.UTF8); node.Num1 = _accessor.ReadInt32(); node.Num2 = _accessor.ReadInt32(); AddNode(node); }