Ejemplo n.º 1
0
 public MemoryWriter(IWriter itemWriter)
 {
     if (itemWriter.Type == typeof(byte))
     {
         spanWriter = new ByteSpanWriter();
     }
     else
     {
         spanWriter = new SpanWriter <T>(itemWriter);
     }
 }
Ejemplo n.º 2
0
 public VarSizedStoreLengthDecorator(IVarSizeWriter writer) : base(writer)
 {
     this.writer = writer;
 }
Ejemplo n.º 3
0
 public VarSizeArrayWriter(IVarSizeWriter itemWriter)
     : base(itemWriter)
 {
     this.itemWriter = itemWriter;
 }