V1/Cet.Develop.NETMF.IO/ByteArray/ByteArrayWriter.cs
/// <summary>
/// Allocate the specified number of bytes in the underlying
/// buffer. Get the buffer longer when needed
/// </summary>
/// <param name="count"></param>
Allocate the specified number of bytes in the underlying
buffer. Get the buffer longer when needed
Allocate the specified number of bytes in the underlying buffer . Get the buffer longer when needed
private void Allocate(int count)
        {
            this.CheckImmutable();
            var size = this._buffer.Length;
            var newLen = this._length + count;
            if (newLen < size)
                return;
            do
            {
                size += ChunkSize;
            } while (size < newLen);
            var temp = new byte[size];
            Array.Copy(
                this._buffer,
                temp,
                this._buffer.Length);
            this._buffer = temp;
        }
private void Allocate ( int count ) { this . CheckImmutable ( ) ; var size = this . _buffer . Length ; var newLen = this . _length + count ; if ( newLen < size ) return ; do { size += ChunkSize ; } while ( size < newLen ) ; var temp = new byte [ size ] ; Array . Copy ( this . _buffer , temp , this . _buffer . Length ) ; this . _buffer = temp ; }
Allocate the specified number of bytes in the underlying
buffer.
Allocate the specified number of bytes in the underlying buffer .
count
int
None