3 #include <Core/Exceptions.h>
12 static auto NoBufferException = std::logic_error(
"Buffer is nullptr!");
16 static auto IndexOutOfRangeException = std::range_error(
"Index out of range!");
54 virtual const char *
buffer()
const = 0;
64 virtual size_t size()
const = 0;
This file contains a series of type definitions for the codebase.
An interface for working with byte buffers.
Definition: Buffer.h:49
virtual const char * buffer() const =0
Get a constant pointer to the start of the buffer.
virtual size_t size() const =0
Get the size of the buffer.
virtual char * rawBuffer() const =0
Get a mutable pointer to the start of the buffer.
The namespace encapsulating I/O related classes and functions in the Devel framework.