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
11 data(nullptr),
12 len(0)
13{
14}
15
16yarp::os::Bytes::Bytes(char* data, size_t len) :
17 data(data),
18 len(len)
19{
20}
21
23{
24 return len;
25}
26
27const char* yarp::os::Bytes::get() const
28{
29 return data;
30}
31
33{
34 return data;
35}
size_t length() const
Definition Bytes.cpp:22
const char * get() const
Definition Bytes.cpp:27
Bytes()
Default constructor.
Definition Bytes.cpp:10