35 const
unsigned char *buf;
39 memcpy (&ibuf, buf,
sizeof (u_int32_t));
44 const
unsigned char *buf;
48 memcpy (&ibuf, buf,
sizeof (int32_t));
53 const
unsigned char *buf;
57 memcpy (&ibuf, buf,
sizeof (u_int16_t));
62 const
unsigned char *buf;
66 memcpy (&ibuf, buf,
sizeof (int16_t));
74 u_int32_t tmp = htonl (val);
75 memcpy (obuf, &tmp,
sizeof tmp);
82 int32_t tmp = htonl (val);
83 memcpy (obuf, &tmp,
sizeof tmp);
90 u_int16_t tmp = htons (val);
91 memcpy (obuf, &tmp,
sizeof tmp);
98 int16_t tmp = htons (val);
99 memcpy (obuf, &tmp,
sizeof tmp);
110 const
unsigned char *obuf;
116 const
unsigned char *buf;
123 u_int32_t newcolumn = base;
143 newcolumn = column * base;
145 }
while (newcolumn > column);
151 unsigned
char *outbuf;
152 const
unsigned char *inbuf;
157 static char h2a [] =
"0123456789abcdef";
173 for (i = power - 1 ; i >= 0; i--) {
174 outbuf [i] = h2a [number % base];
void putLong(unsigned char *, int32_t)
int32_t getShort(const unsigned char *)
int32_t getLong(const unsigned char *)
void putULong(unsigned char *, u_int32_t)
int binary_to_ascii(unsigned char *, const unsigned char *, unsigned int, unsigned int)
u_int32_t getUShort(const unsigned char *)
void putShort(unsigned char *, int32_t)
u_int32_t getULong(const unsigned char *)
void putUChar(unsigned char *, u_int32_t)
u_int32_t getUChar(const unsigned char *)
int converted_length(const unsigned char *, unsigned int, unsigned int)
void putUShort(unsigned char *, u_int32_t)