Пример #1
0
        public BufferWriterMemory GetMemory(int length)
        {
            this.CheckAndResizeBuffer(length);
            var memory = new BufferWriterMemory(this, this.index, length);

            this.index += length;
            return(memory);
        }
Пример #2
0
 internal void Add(BufferWriterMemory spanMessage)
 {
     PooledList <BufferWriterMemory> .Add(ref this.spanMessages, spanMessage);
 }