AnCH Framework 0.1
Another C++ Hack Framework
 
Loading...
Searching...
No Matches
anch::cutils::cbuffer Struct Reference

C buffer. More...

#include <iostream.hpp>

+ Collaboration diagram for anch::cutils::cbuffer:

Public Attributes

char * data
 
std::size_t size
 
std::function< std::size_t(char *, std::size_t)> read = nullptr
 
std::function< std::size_t(char *, std::size_t)> write = nullptr
 

Detailed Description

C buffer.

data is optional: when NULL , it will be allocated/deallocated by CStreambuf constructor/destructor.

Since
0.1
Author
Vincent Lachenal

Member Data Documentation

◆ data

char* anch::cutils::cbuffer::data

Buffer data

◆ read

std::function<std::size_t(char*,std::size_t)> anch::cutils::cbuffer::read = nullptr

Read data function

◆ size

std::size_t anch::cutils::cbuffer::size

Buffer size

◆ write

std::function<std::size_t(char*,std::size_t)> anch::cutils::cbuffer::write = nullptr

Write data function


The documentation for this struct was generated from the following file: