Esempio n. 1
0
 /// <summary>
 /// Ensures the specified number of bytes are available.
 /// Will assign more memory to the <see cref="WritableBuffer"/> if requested amount not currently available.
 /// </summary>
 /// <param name="count">number of bytes</param>
 /// <remarks>
 /// Used when writing to <see cref="Memory"/> directly.
 /// </remarks>
 /// <exception cref="ArgumentOutOfRangeException">
 /// More requested than underlying <see cref="IBufferPool"/> can allocate in a contiguous block.
 /// </exception>
 public void Ensure(int count = 1)
 {
     _output.Ensure(count);
 }