24 #include <netlink/smart_buffer.h>
35 inline const void* SmartBuffer::operator*()
const {
50 inline const char* SmartBuffer::operator[](
size_t index)
const {
52 if(index >= _usedSize)
53 throw Exception(Exception::OUT_OF_RANGE,
"SmartBuffer::operator[]: index out of range");
55 return (
char*) _buffer + index;
64 inline const void* SmartBuffer::buffer()
const {
75 inline size_t SmartBuffer::size()
const {
86 inline void SmartBuffer::clear() {