YARP
Yet Another Robot Platform
NetType.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_NETTYPE_H
8#define YARP_OS_NETTYPE_H
9
10#include <yarp/conf/numeric.h>
11
12#include <yarp/os/Bytes.h>
13#include <yarp/os/InputStream.h>
14#include <yarp/os/NetFloat64.h>
15#include <yarp/os/NetInt32.h>
16
17#include <string>
18
19namespace yarp::os {
20
25{
26public:
27 static int netInt(const yarp::os::Bytes& code);
28 static bool netInt(int data, yarp::os::Bytes& code);
29
30 static unsigned long int getCrc(char* buf, size_t len);
31
32};
33
34} // namespace yarp::os
35
36#endif // YARP_OS_NETTYPE_H
A simple abstraction for a block of bytes.
Definition: Bytes.h:24
Various utilities related to types and formats.
Definition: NetType.h:25
An interface to the operating system, including Port based communication.
#define YARP_os_API
Definition: api.h:18