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 *obuf, int32_t val)
void putUShort(unsigned char *obuf, u_int32_t val)
int32_t getShort(unsigned char *buf) const
u_int32_t getUShort(unsigned char *buf) const
void putShort(unsigned char *obuf, int32_t val)
int converted_length(unsigned char *buf, unsigned int base, unsigned int width) const
void putUChar(unsigned char *obuf, u_int32_t val)
u_int32_t getULong(unsigned char *buf) const
int32_t getLong(unsigned char *buf) const
int binary_to_ascii(unsigned char *outbuf, const unsigned char *inbuf, unsigned int base, unsigned int width)
void putULong(unsigned char *obuf, u_int32_t val)
u_int32_t getUChar(unsigned char *obuf) const