CNDP 22.08.0
Loading...
Searching...
No Matches
cne_byteorder.h
Go to the documentation of this file.
1/* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright (c) 2019-2022 Intel Corporation
3 */
4
5#ifndef _CNE_BYTEORDER_H_
6#define _CNE_BYTEORDER_H_
7
13
14#include <stdint.h>
15#include <endian.h>
16/*
17 * The following types should be used when handling values according to a
18 * specific byte ordering, which may differ from that of the host CPU.
19 *
20 * Libraries, public APIs and applications are encouraged to use them for
21 * documentation purposes.
22 */
23typedef uint16_t cne_be16_t;
24typedef uint32_t cne_be32_t;
25typedef uint64_t cne_be64_t;
26typedef uint16_t cne_le16_t;
27typedef uint32_t cne_le32_t;
28typedef uint64_t cne_le64_t;
29
30#endif /* _CNE_BYTEORDER_H_ */
uint16_t cne_be16_t
uint32_t cne_le32_t
uint64_t cne_be64_t
uint16_t cne_le16_t
uint64_t cne_le64_t
uint32_t cne_be32_t