Free Electron
old
netsignal
Chunk.h
Go to the documentation of this file.
1
/* Copyright (C) 2003-2021 Free Electron Organization
2
Any use of this software requires a license. If a valid license
3
was not distributed with this file, visit freeelectron.org. */
4
5
/** @file */
6
7
#ifndef __netsignal_ChunkSpool_h__
8
#define __netsignal_ChunkSpool_h__
9
namespace
fe
10
{
11
namespace
ext
12
{
13
14
/**
15
*/
16
class
FE_DL_EXPORT Chunk :
public
Counted
17
{
18
public
:
19
Chunk(
const
std::string &s);
20
Chunk(FE_UWORD size);
21
virtual
~Chunk(
void
);
22
23
const
void
*buffer(
void
);
24
void
resize(FE_UWORD a_size);
25
FE_UWORD size(
void
);
26
std::string string(
void
);
27
28
private
:
29
std::string m_string;
30
FE_UWORD m_size;
31
};
32
33
typedef
Spool<Chunk> ChunkSpool;
34
35
}
/* namespace ext */
36
}
/* namespace fe */
37
38
#endif
/* __netsignal_ChunkSpool_h__ */
39
fe
kernel
Definition:
namespace.dox:3
Generated by
1.8.13