Ticket #1360 (assigned task)
Re-engineer CBuffer
| Reported by: | erijo | Owned by: | erijo |
|---|---|---|---|
| Priority: | normal | Milestone: | 2.0.0 |
| Component: | licq daemon | Version: | |
| Keywords: | Cc: |
Description (last modified by erijo) (diff)
The CBuffer class (src/buffer.cpp and include/licq_buffer.h) should be rewritten. All Oscar/ICQ related functions should be removed and placed in the ICQ plugin in a CICQBuffer class.
Also the CBuffer uses a static buffer at the moment. The new class should use a dynamicaly sized buffer, that will resize itself when writing to it (operator <<). It has to support the pack/unpack functions for byte-sex conversion, since this is used for ICQ and other protocols most likely.
The idea would be to make it exception-safe and to use an STL structure as the underlying data structure to make it dynamic. Precomputing the size, as it is necessary now, is a major problem and is counter-intuitive for plugins.
