DDraceNetwork Documentation
Loading...
Searching...
No Matches
bytes.h
Go to the documentation of this file.
1/* (c) Magnus Auvinen. See licence.txt in the root of the distribution for more information. */
2/* If you are missing that file, acquire a complete release at teeworlds.com. */
3
4#ifndef BASE_BYTES_H
5#define BASE_BYTES_H
6
12
24void swap_endian(void *data, unsigned elem_size, unsigned num);
25
40unsigned bytes_be_to_uint(const unsigned char *bytes);
41
55void uint_to_bytes_be(unsigned char *bytes, unsigned value);
56
57#endif
void swap_endian(void *data, unsigned elem_size, unsigned num)
Definition bytes.cpp:6
void uint_to_bytes_be(unsigned char *bytes, unsigned value)
Definition bytes.cpp:40
unsigned bytes_be_to_uint(const unsigned char *bytes)
Definition bytes.cpp:35