Server/Network/PacketWriter.cs
/// <summary>
/// Writes a number of 0x00 byte values to the underlying stream.
/// </summary>
Writes a number of 0x00 byte values to the underlying stream.
Writes a number of 0x00 byte values to the underlying stream .
public void Fill( int length )
		{
			if ( m_Stream.Position == m_Stream.Length )
			{
				m_Stream.SetLength( m_Stream.Length + length );
				m_Stream.Seek( 0, SeekOrigin.End );
			}
			else
			{
				m_Stream.Write( new byte[length], 0, length );
			}
		}
public void Fill ( int length ) { if ( m_Stream . Position == m_Stream . Length ) { m_Stream . SetLength ( m_Stream . Length + length ) ; m_Stream . Seek ( 0 , SeekOrigin . End ) ; } else { m_Stream . Write ( new byte [ length ] , 0 , length ) ; } }
Writes a number of 0x00 byte values to the underlying stream.
Writes a number of 0x00 byte values to the underlying stream .
length
int