RTRlib
Loading...
Searching...
No Matches
convert_byte_order_private.h
Go to the documentation of this file.
1/*
2 * This file is part of RTRlib.
3 *
4 * This file is subject to the terms and conditions of the MIT license.
5 * See the file LICENSE in the top level directory for more details.
6 *
7 * Website: http://rtrlib.realmv6.org/
8 */
9
10#ifndef LRTR_CONVERT_BYTE_ORDER_PRIVATE_H
11#define LRTR_CONVERT_BYTE_ORDER_PRIVATE_H
12
13#include <inttypes.h>
14
22
29uint16_t lrtr_convert_short(const enum target_byte_order tbo, const uint16_t value);
30
37uint32_t lrtr_convert_long(const enum target_byte_order tbo, const uint32_t value);
38
39#endif /* LRTR_CONVERT_BYTE_ORDER_H */
uint32_t lrtr_convert_long(const enum target_byte_order tbo, const uint32_t value)
Converts the passed long value to the given target byte order.
uint16_t lrtr_convert_short(const enum target_byte_order tbo, const uint16_t value)
Converts the passed short value to the given target byte order.
target_byte_order
Target byte order for conversion.
Definition convert_byte_order_private.h:18
@ TO_NETWORK_BYTE_ORDER
Definition convert_byte_order_private.h:19
@ TO_HOST_HOST_BYTE_ORDER
Definition convert_byte_order_private.h:20