mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
10 lines
136 B
V
10 lines
136 B
V
|
module conv
|
||
|
|
||
|
#include <arpa/inet.h>
|
||
|
|
||
|
fn C.htonl(host u32) u32
|
||
|
fn C.htons(host u16) u16
|
||
|
|
||
|
fn C.ntohl(net u32) u32
|
||
|
fn C.ntohs(net u16) u16
|