public NetWriter(byte[] buffer) { m_Buffer = new NetworkBuffer(buffer); if (s_Encoding == null) { s_Encoding = new UTF8Encoding(); s_StringWriteBuffer = new byte[k_MaxStringLength]; } }
public NetReader(byte[] buffer) { m_buf = new NetworkBuffer(buffer); Initialize(); }
public NetReader() { m_buf = new NetworkBuffer(); Initialize(); }