Example #1
0
 public NetworkWriter(byte[] buffer)
 {
     m_Buffer = new NetworkBuffer(buffer);
     if (s_Encoding == null)
     {
         s_Encoding = new UTF8Encoding();
         s_StringWriteBuffer = new byte[MAX_STRING_LEGNTH];
     }
 }
 public NetworkReader(byte[] buffer)
 {
     m_Buffer = new NetworkBuffer(buffer);
     Initialize();
 }
 public NetworkReader()
 {
     m_Buffer = new NetworkBuffer();
     Initialize();
 }