Constructing a dynbuf object allocates a fixed amount of memory, which is automatically deallocated when the last dynbuf pointing to that memory is deleted.
Note that a dynbuf may be cast to a databuf or a constbuf, but not vice versa. Also, copying a dynbuf to a databuf or constbuf does not create another reference to the underlying data.
| Public Methods | |
| dynbuf () | |
| Null constructor. | |
| dynbuf (unsigned int maxlen) | |
| Dynamically allocates a data buffer whose current length is 0 bytes but whose maximum length is maxlen bytes. | |
| dynbuf (const dynbuf &other) | |
| Copies a dynbuf, making another reference to other's underlying storage. | |
| dynbuf & | operator= (const dynbuf &other) | 
| Copies a dynbuf, making another reference to other's underlying storage. | |
| ~dynbuf () | |
| Deletes the underlying storage of this dynbuf if it is the last existing copy. | |
| 
 | 
| Null constructor. 
 | 
| 
 | 
| Dynamically allocates a data buffer whose current length is 0 bytes but whose maximum length is maxlen bytes. The underlying storage will be deallocate when the last dynbuf referring to that storage is destructed. | 
| 
 | 
| Copies a dynbuf, making another reference to other's underlying storage. 
 | 
| 
 | 
| Deletes the underlying storage of this dynbuf if it is the last existing copy. 
 | 
| 
 | 
| Copies a dynbuf, making another reference to other's underlying storage. 
 |