public override void DoEncoding(OSmartStream ossStream) { ossStream.Encode1(m_typeCode); ossStream.EncodeStringToAnsi(m_userID); ossStream.EncodeStringToAnsi(m_pwd); ossStream.EncodeStringToUnicode(m_nickname); }
public override void DoEncoding(OSmartStream ossStream) { ossStream.Encode2(m_ver1); ossStream.Encode2(m_ver2); ossStream.Encode1(m_clientProductVer); ossStream.Encode1(m_configVer); }
public override void DoEncoding(OSmartStream ossStream) { ossStream.Encode2(SendTransNum); ossStream.Encode1(m_typeCode); ossStream.EncodeStringToAnsi(m_userID); ossStream.EncodeStringToAnsi(m_pwd); }
public override void DoEncoding(OSmartStream ossStream) { ossStream.Encode1(m_typeCode); ossStream.EncodeStringToAnsi(m_userID); ossStream.EncodeStringToAnsi(m_userPwd); ossStream.Encode1(m_localeCode); ossStream.Encode1(m_isAlreadyLogined); ossStream.Encode2(m_recvTransNum); }
public override void DoEncoding(OSmartStream ossStream) { ossStream.Encode2(SendTransNum); ossStream.Encode1(m_actionId); ossStream.Encode4(m_param1); ossStream.Encode4(m_param2); ossStream.Encode4(m_param3); ossStream.Encode4(m_param4); }
public void PrepareSendBuffer() { OSmartStream stream = new OSmartStream(); DoEncoding(stream); stream.CompressBuffer(m_bCRCCheck, m_bEncrypt, 0); m_dataSize = stream.m_compBuf.Size; Array.Copy(stream.m_compBuf.Buffer, 0, m_encodedBuf.Buffer, 4, m_dataSize); m_encodedBuf.Buffer[0] = (byte)((m_dataSize & 0x0000FF00) >> 8); m_encodedBuf.Buffer[1] = (byte)((m_dataSize & 0x000000FF) >> 0); m_encodedBuf.Buffer[2] = (byte)((m_code & 0x0000FF00) >> 8); m_encodedBuf.Buffer[3] = (byte)((m_code & 0x000000FF) >> 0); m_dataSize += 4; m_encodedBuf.Size = m_dataSize; stream.Dispose(); }
public override void DoEncoding(OSmartStream stream) { }
public override void DoEncoding(OSmartStream ossStream) { ossStream.Encode1(m_type); }
public virtual void DoEncoding(OSmartStream ossStream) { // No implementation. }
public override void DoEncoding(OSmartStream ossStream) { ossStream.Encode2(SendTransNum); }
public override void DoEncoding(OSmartStream ossStream) { ossStream.EncodeStringToUnicode(m_nickname); }