#include "internal.h"
#include <sys/types.h>
#include <ctype.h>
#include <errno.h>
Go to the source code of this file.
◆ AVOID_CC_BUG
◆ BIGENDIAN_P
#define BIGENDIAN_P |
( |
| ) |
0 |
◆ castchar
#define castchar |
( |
|
from | ) |
(char)((from) & 0xff) |
◆ DOUBLE_CONVWITH
◆ FLOAT_CONVWITH
◆ hexdigits
◆ HTOND
#define HTOND |
( |
|
x | ) |
((x).u = rb_htond((x).u)) |
◆ HTONF
#define HTONF |
( |
|
x | ) |
((x).u = rb_htonf((x).u)) |
◆ HTOVD
#define HTOVD |
( |
|
x | ) |
((x).u = rb_htovd((x).u)) |
◆ HTOVF
#define HTOVF |
( |
|
x | ) |
((x).u = rb_htovf((x).u)) |
◆ MAX_INTEGER_PACK_SIZE
#define MAX_INTEGER_PACK_SIZE 8 |
◆ MORE_ITEM
◆ NATINT_LEN
#define NATINT_LEN |
( |
|
type, |
|
|
|
len |
|
) |
| (natint?(int)sizeof(type):(int)(len)) |
◆ NATINT_LEN_Q
◆ NATINT_PACK
◆ NEXTFROM
◆ NTOHD
#define NTOHD |
( |
|
x | ) |
((x).u = rb_ntohd((x).u)) |
◆ NTOHF
#define NTOHF |
( |
|
x | ) |
((x).u = rb_ntohf((x).u)) |
◆ PACK_ITEM_ADJUST
#define PACK_ITEM_ADJUST |
( |
| ) |
|
◆ PACK_LENGTH_ADJUST_SIZE
#define PACK_LENGTH_ADJUST_SIZE |
( |
|
sz | ) |
|
Value:do { \
tmp_len = 0; \
if (
len > (
long)((send-s)/(sz))) { \
if (!star) { \
tmp_len =
len-(send-s)/(sz); \
} \
len = (send-s)/(sz); \
} \
} while (0)
register unsigned int len
Definition at line 999 of file pack.c.
◆ rb_htond
◆ rb_htonf
◆ rb_htovd
◆ rb_htovf
◆ rb_ntohd
◆ rb_ntohf
◆ rb_vtohd
◆ rb_vtohf
◆ swapd
#define swapd |
( |
|
x | ) |
swap64(x) |
◆ swapf
◆ THISFROM
◆ TOO_FEW
◆ UNPACK_1
◆ UNPACK_ARRAY
◆ UNPACK_BLOCK
◆ UNPACK_PUSH
#define UNPACK_PUSH |
( |
|
item | ) |
|
Value:do {\
VALUE item_val = (item);\
rb_yield(item_val);\
}\
rb_ary_push(ary, item_val);\
}\
else {\
return item_val; \
}\
} while (0)
◆ VTOHD
#define VTOHD |
( |
|
x | ) |
((x).u = rb_vtohd((x).u)) |
◆ VTOHF
#define VTOHF |
( |
|
x | ) |
((x).u = rb_vtohf((x).u)) |
◆ Init_pack()
◆ rb_uv_to_utf8()
int rb_uv_to_utf8 |
( |
char |
buf[6], |
|
|
unsigned long |
uv |
|
) |
| |