YARP
Yet Another Robot Platform
Bytes.cpp
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
#include <
yarp/os/Bytes.h
>
11
12
13
yarp::os::Bytes::Bytes
() :
14
data(nullptr),
15
len(0)
16
{
17
}
18
19
yarp::os::Bytes::Bytes
(
char
* data,
size_t
len) :
20
data(data),
21
len(len)
22
{
23
}
24
25
size_t
yarp::os::Bytes::length
()
const
26
{
27
return
len;
28
}
29
30
const
char
*
yarp::os::Bytes::get
()
const
31
{
32
return
data;
33
}
34
35
char
*
yarp::os::Bytes::get
()
36
{
37
return
data;
38
}
yarp::os::Bytes::Bytes
Bytes()
Default constructor.
Definition:
Bytes.cpp:13
yarp::os::Bytes::get
const char * get() const
Definition:
Bytes.cpp:30
yarp::os::Bytes::length
size_t length() const
Definition:
Bytes.cpp:25
Bytes.h
YARP
3.4.100+20201223.2+gitb8ea4d712
src
libYARP_os
src
yarp
os
Bytes.cpp
Generated on Sun Jan 3 2021 02:46:24 for YARP by
1.8.20