YARP
Yet Another Robot Platform
Bytes.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2006-2020 Istituto Italiano di Tecnologia (IIT)
3
* Copyright (C) 2006-2010 RobotCub Consortium
4
* All rights reserved.
5
*
6
* This software may be modified and distributed under the terms of the
7
* BSD-3-Clause license. See the accompanying LICENSE file for details.
8
*/
9
10
#ifndef YARP_OS_BYTES_H
11
#define YARP_OS_BYTES_H
12
13
#include <
yarp/os/api.h
>
14
15
#include <cstddef>
16
17
18
namespace
yarp
{
19
namespace
os {
20
27
class
YARP_os_API
Bytes
28
{
29
public
:
33
explicit
Bytes
();
34
40
Bytes
(
char
* data,
size_t
len);
41
45
size_t
length()
const
;
46
50
const
char
* get()
const
;
51
55
char
* get();
56
57
private
:
58
char
* data;
59
size_t
len;
60
};
61
62
}
// namespace os
63
}
// namespace yarp
64
65
#endif // YARP_OS_BYTES_H
api.h
YARP_os_API
#define YARP_os_API
Definition:
api.h:19
yarp::os::Bytes
A simple abstraction for a block of bytes.
Definition:
Bytes.h:28
yarp
The main, catch-all namespace for YARP.
Definition:
environment.h:18
YARP
3.4.100+20201223.2+gitb8ea4d712
src
libYARP_os
src
yarp
os
Bytes.h
Generated on Sun Jan 3 2021 02:46:24 for YARP by
1.8.20