Ejemplo n.º 1
0
        internal BufferWriter(SequencePool sequencePool, byte[] array)
        {
            buffered          = 0;
            bytesCommitted    = 0;
            this.sequencePool = sequencePool;
            rental            = default;
            output            = null;

            segment   = new ArraySegment <byte>(array);
            innerSpan = segment.AsSpan();
        }
Ejemplo n.º 2
0
 internal Rental(SequencePool owner, Sequence value)
 {
     this.owner = owner;
     this.Value = value;
 }