clp
clp copied to clipboard
Added buffer files
Description
Added 5 new files for buffer classes.
- Buffer.hpp provides the structure of the buffer class, with storage for a static buffer and a vector of dynamic buffers.
- InputBuffer.hpp + InputBuffer.cpp provides functionality for a character buffer which is split into two halves. A half can only be overwritten once its content has been consumed. If more input is needed when neither half is fully consumed, the buffer size can be doubled.
- OutputBuffer.hpp + OutputBuffer.cpp provides functionality for a token buffer. If the buffer is not big enough to store the desired amount of token, the buffer size can be doubled.