示例#1
0
        public IonSystemLite(IonTextWriterBuilder textWriterBuilder, PrivateIonBinaryWriterBuilder binaryWriterBuilder,
                             IonReaderBuilder readerBuilder)
        {
            _readerBuilder = readerBuilder;
            var catalog = textWriterBuilder.Catalog;

            //make sure we're on the same catalog here
            Debug.Assert(catalog == binaryWriterBuilder.Catalog);
            Debug.Assert(catalog == readerBuilder.Catalog);

            Context            = new ContainerlessContext(this);
            Catalog            = catalog;
            _systemSymbolTable = binaryWriterBuilder.InitialSymbolTable;
            Debug.Assert(_systemSymbolTable.IsSystem);
            binaryWriterBuilder.SymtabValueFactory = this;

            _textWriterBuilder   = textWriterBuilder.Immutable();
            _binaryWriterBuilder = binaryWriterBuilder.Immutable();
        }
示例#2
0
 /// <summary>
 /// Mostly for testing
 /// </summary>
 internal IonSystemLite(ContainerlessContext ctx)
 {
     Context = ctx;
 }
示例#3
0
 public IonIntLite(ContainerlessContext containerlessContext, bool isNull) : base(containerlessContext, isNull)
 {
 }
示例#4
0
 public IonDatagramLite(ContainerlessContext containerlessContext, bool isNull) : base(containerlessContext, isNull)
 {
 }
示例#5
0
 protected IonContainerLite(ContainerlessContext containerlessContext, bool isNull) : base(containerlessContext, isNull)
 {
 }