clp icon indicating copy to clipboard operation
clp copied to clipboard

Added buffer files

Open SharafMohamed opened this issue 2 years ago • 1 comments

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.

SharafMohamed avatar Feb 06 '23 11:02 SharafMohamed