Rev 1598 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 1598 | Rev 1642 | ||
|---|---|---|---|
| Line 26... | Line 26... | ||
| 26 | #include <boost/shared_ptr.hpp> |
26 | #include <boost/shared_ptr.hpp> |
| 27 | 27 | ||
| 28 | #include "common.h" |
28 | #include "common.h" |
| 29 | 29 | ||
| 30 | namespace atom { |
30 | namespace atom { |
| 31 | namespace |
31 | namespace common { |
| 32 | 32 | ||
| 33 | class Byteset |
33 | class Byteset |
| 34 | { |
34 | { |
| 35 | public: |
35 | public: |
| 36 | typedef boost::shared_ptr<Byteset> Pointer; |
36 | typedef boost::shared_ptr<Byteset> Pointer; |
| Line 52... | Line 52... | ||
| 52 | void SetSize(unsigned int size); |
52 | void SetSize(unsigned int size); |
| 53 | 53 | ||
| 54 | void Append(unsigned char byte); |
54 | void Append(unsigned char byte); |
| 55 | 55 | ||
| 56 | void Clear(); |
56 | void Clear(); |
| - | 57 | void Fill(char c); |
|
| 57 | 58 | ||
| 58 | private: |
59 | private: |
| 59 | unsigned char* bytes_; |
60 | unsigned char* bytes_; |
| 60 | unsigned int max_size_; |
61 | unsigned int max_size_; |
| 61 | 62 | ||