| 20 | } |
| 21 | |
| 22 | void CAbstractPacker::AddInt(int i) |
| 23 | { |
| 24 | if(m_Error) |
| 25 | return; |
| 26 | |
| 27 | unsigned char *pNext = CVariableInt::Pack(m_pCurrent, i, m_pEnd - m_pCurrent); |
| 28 | if(!pNext) |
| 29 | { |
| 30 | m_Error = true; |
| 31 | return; |
| 32 | } |
| 33 | m_pCurrent = pNext; |
| 34 | } |
| 35 | |
| 36 | void CAbstractPacker::AddString(const char *pStr, int Limit, bool AllowTruncation) |
| 37 | { |
no outgoing calls