SayoriOS  0.3.3
endianess.h
1 #pragma once
2 #include "common.h"
3 
4 uint8_t bit_flip_byte(uint8_t byte, int num_bits);
5 uint16_t bit_flip_short(uint16_t short_int);
6 uint32_t bit_flip_int(uint32_t long_int);
7 uint8_t htonb(uint8_t byte, int num_bits);
8 uint8_t ntohb(uint8_t byte, int num_bits);
9 uint16_t htons(uint16_t hostshort);
10 uint32_t htonl(uint32_t hostlong);
11 uint16_t ntohs(uint16_t netshort);
12 uint32_t ntohl(uint32_t netlong);
Основные определения ядра