libbf
0.1
Main Page
Classes
All
Classes
Functions
Typedefs
Friends
Pages
src
bf
object.h
1
#ifndef BF_OBJECT_H
2
#define BF_OBJECT_H
3
4
#include <type_traits>
5
6
namespace
bf {
7
9
class
object
10
{
11
public
:
12
object
(
void
const
* data,
size_t
size)
13
: data_(data), size_(size)
14
{
15
}
16
17
void
const
* data()
const
18
{
19
return
data_;
20
}
21
22
size_t
size()
const
23
{
24
return
size_;
25
}
26
27
private
:
28
void
const
* data_ =
nullptr
;
29
size_t
size_ = 0;
30
};
31
32
}
// namespace bf
33
34
#endif
Generated by
1.8.3.1