A simple buffer to read things on, supports conversion to string. More...
#include <buffers.hpp>
Public Member Functions | |
| read_buffer_implementation (size_t size) | |
| Creates a new buffer in heap. | |
| void | resize (size_t new_size) |
| Resize the buffer, this won't affect the amount of memory usage. | |
| ~read_buffer_implementation () | |
| Deletes the buffer from heap. | |
| char * | base_char () const |
| Get the base address. | |
| void * | base () const |
| Get the base address. | |
| size_t | size () const |
| Get the size of the buffer. | |
| std::string | string () |
| Create a string from the buffer. | |
| template<class T > | |
| void | copy_to (T &x) |
Private Attributes | |
| char * | base_ |
| size_t | size_ |
A simple buffer to read things on, supports conversion to string.
Definition at line 49 of file buffers.hpp.
| ana::detail::read_buffer_implementation::read_buffer_implementation | ( | size_t | size | ) | [inline] |
Creates a new buffer in heap.
| size | : The size of the buffer. |
Definition at line 57 of file buffers.hpp.
| Generated by doxygen 1.7.1 on Thu May 24 2012 01:19:18 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |