src/Orleans.Serialization/Buffers/Writer.cs
/// <summary>
/// Allocates room for the specified number of bytes.
/// </summary>
/// <param name="length">The number of bytes to reserve.</param>
Allocates room for the specified number of bytes.
Allocates room for the specified number of bytes .
[MethodImpl(MethodImplOptions.NoInlining)]
        public void Allocate(int length)
        {
            _output.Advance(_bufferPos);
            _currentSpan = _output.GetSpan(length);
            _previousBuffersSize += _bufferPos;
            _bufferPos = 0;
        }
[ MethodImpl ( MethodImplOptions . NoInlining ) ] public void Allocate ( int length ) { _output . Advance ( _bufferPos ) ; _currentSpan = _output . GetSpan ( length ) ; _previousBuffersSize += _bufferPos ; _bufferPos = 0 ; }
Allocates room for the specified number of bytes.
Allocates room for the specified number of bytes .
// Commit the bytes which have been written. // Request a new buffer with at least the requested number of available bytes. // Update internal state for the new buffer.
length
int
The number of bytes to reserve.
The number of bytes to reserve .