public void WriteBytesAndSize(byte[] buffer, int count)
{
if ((buffer == null) || (count == 0))
{
this.Write((ushort) 0);
}
else if (count > 0xffff)
{
if (LogFilter.logError)
{
Debug.LogError("NetworkWriter WriteBytesAndSize: buffer is too large (" + count + ") bytes. The maximum buffer size is 64K bytes.");
}
}
else
{
this.Write((ushort) count);
this.m_Buffer.WriteBytes(buffer, (ushort) count);
}
}