YARP
Yet Another Robot Platform
Loading...
Searching...
No Matches
Bytes.h
Go to the documentation of this file.
1
/*
2
* SPDX-FileCopyrightText: 2006-2021 Istituto Italiano di Tecnologia (IIT)
3
* SPDX-FileCopyrightText: 2006-2010 RobotCub Consortium
4
* SPDX-License-Identifier: BSD-3-Clause
5
*/
6
7
#ifndef YARP_OS_BYTES_H
8
#define YARP_OS_BYTES_H
9
10
#include <
yarp/os/api.h
>
11
12
#include <cstddef>
13
14
15
namespace
yarp::os
{
16
23
class
YARP_os_API
Bytes
24
{
25
public
:
29
explicit
Bytes
();
30
36
Bytes
(
char
* data,
size_t
len);
37
41
size_t
length()
const
;
42
46
const
char
* get()
const
;
47
51
char
* get();
52
53
private
:
54
char
* data;
55
size_t
len;
56
};
57
58
}
// namespace yarp::os
59
60
#endif
// YARP_OS_BYTES_H
yarp::os::Bytes
A simple abstraction for a block of bytes.
Definition
Bytes.h:24
yarp::os
An interface to the operating system, including Port based communication.
Definition
AbstractCarrier.h:13
api.h
YARP_os_API
#define YARP_os_API
Definition
api.h:18
YARP
3.9.0
src
libYARP_os
src
yarp
os
Bytes.h
Generated on Fri Nov 24 2023 14:53:40 for YARP by
1.9.8