private void WriteCheckForSpace(ushort count)
{
if ((this.m_Pos + count) >= this.m_Buffer.Length)
{
int num = (int) (this.m_Buffer.Length * 1.5f);
while ((this.m_Pos + count) >= num)
{
num = (int) (num * 1.5f);
if (num > 0x8000000)
{
Debug.LogWarning("NetworkBuffer size is " + num + " bytes!");
}
}
byte[] array = new byte[num];
this.m_Buffer.CopyTo(array, 0);
this.m_Buffer = array;
}
}