Linux 上面實測不同data type length, 利用 stun program 測試的結果
size (bytes)
int: 4
struct sockaddr: 16
struct timeval: 8
UInt128: 16
char: 1
unsigned char: 1
double: 8
typedef unsigned char UInt8: 1
typedef unsigned short UInt16: 2
typedef unsigned int UInt32: 4
typedef unsigned long ULong32: 4
typedef double Double: 8
typedef unsigned long long UInt64: 8
沒有留言:
張貼留言