예제 #1
0
 public AcroOutput(AcroOutputOptions options)
 {
     this.options = options;
     channel      = Channel.CreateUnbounded <OutputContext>(this.options.ChannelOptions);
     Writer       = channel.Writer;
     if (options.UseArrayPool)
     {
         pool = ArrayPool <uint> .Shared;
     }
 }
예제 #2
0
        public IAcroOutputBuilder ConfigureOptions(Action <AcroOutputOptions> configure)
        {
            if (options == null)
            {
                options = new AcroOutputOptions();
            }

            configure(options);

            return(this);
        }