public JHSNetworkWriter(byte[] buffer)
 {
     m_Buffer = new JHSNetBuffer(buffer);
     if (s_Encoding == null)
     {
         s_Encoding          = new UTF8Encoding();
         s_StringWriteBuffer = new byte[k_MaxStringLength];
     }
 }
Example #2
0
 public JHSNetworkReader(byte[] buffer)
 {
     m_buf = new JHSNetBuffer(buffer);
     Initialize();
 }
Example #3
0
 public JHSNetworkReader(JHSNetworkWriter writer)
 {
     m_buf = new JHSNetBuffer(writer.AsArray());
     Initialize();
 }
Example #4
0
 public JHSNetworkReader()
 {
     m_buf = new JHSNetBuffer();
     Initialize();
 }