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 
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 
26 {
27  return len;
28 }
29 
30 const char* yarp::os::Bytes::get() const
31 {
32  return data;
33 }
34 
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