Back to index

php5  5.3.10
Functions
uint32.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void uint32_pack (char *out, uint32 in)
void uint32_unpack (const char *in, uint32 *out)

Function Documentation

void uint32_pack ( char *  out,
uint32  in 
)

Definition at line 32 of file uint32.c.

{
       out[0] = in&0xff; in>>=8;
       out[1] = in&0xff; in>>=8;
       out[2] = in&0xff; in>>=8;
       out[3] = in&0xff;
}

Here is the caller graph for this function:

void uint32_unpack ( const char *  in,
uint32 *  out 
)

Definition at line 42 of file uint32.c.

{
       *out = (((uint32)(unsigned char)in[3])<<24) |
              (((uint32)(unsigned char)in[2])<<16) |
              (((uint32)(unsigned char)in[1])<<8) |
              (((uint32)(unsigned char)in[0]));
}

Here is the caller graph for this function: