YARP
Yet Another Robot Platform
Loading...
Searching...
No Matches
Bytes.cpp
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
#include <
yarp/os/Bytes.h
>
8
9
10
yarp::os::Bytes::Bytes
() :
11
data(nullptr),
12
len(0)
13
{
14
}
15
16
yarp::os::Bytes::Bytes
(
char
* data,
size_t
len) :
17
data(data),
18
len(len)
19
{
20
}
21
22
size_t
yarp::os::Bytes::length
()
const
23
{
24
return
len;
25
}
26
27
const
char
*
yarp::os::Bytes::get
()
const
28
{
29
return
data;
30
}
31
32
char
*
yarp::os::Bytes::get
()
33
{
34
return
data;
35
}
Bytes.h
yarp::os::Bytes::length
size_t length() const
Definition
Bytes.cpp:22
yarp::os::Bytes::get
const char * get() const
Definition
Bytes.cpp:27
yarp::os::Bytes::Bytes
Bytes()
Default constructor.
Definition
Bytes.cpp:10
YARP
3.9.0
src
libYARP_os
src
yarp
os
Bytes.cpp
Generated on Fri Nov 24 2023 14:53:40 for YARP by
1.9.8