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
15namespace yarp::os {
16
24{
25public:
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
53private:
54 char* data;
55 size_t len;
56};
57
58} // namespace yarp::os
59
60#endif // YARP_OS_BYTES_H
A simple abstraction for a block of bytes.
Definition Bytes.h:24
An interface to the operating system, including Port based communication.
#define YARP_os_API
Definition api.h:18