bytedecoders.h File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int get_1byte_value (char *start)
int get_2byte_value (char *start)
int get_4byte_value (char *start)


Function Documentation

int get_1byte_value ( char *  start  ) 

Definition at line 19 of file bytedecoders.c.

Referenced by OLE_convert_directory(), and OLE_decode_file().

00020 {
00021         return (int) *start;
00022 }

Here is the caller graph for this function:

int get_2byte_value ( char *  start  ) 

Definition at line 39 of file bytedecoders.c.

References value.

Referenced by OLE_convert_directory(), and OLE_convert_header().

00040 {
00041         int value = 0;
00042 
00043         value = (unsigned char)*start | (((unsigned char)*(start +1)) << 8);
00044 
00045         return value;
00046 }

Here is the caller graph for this function:

int get_4byte_value ( char *  start  ) 

Definition at line 63 of file bytedecoders.c.

References value.

Referenced by OLE_convert_directory(), OLE_convert_header(), OLE_follow_chain(), OLE_follow_minichain(), OLE_load_chain(), OLE_load_FAT(), OLE_load_minichain(), and OLEUNWRAP_decode_attachment().

00064 {
00065         int value = 0;
00066 
00067         value = ((unsigned char)*start)
00068                 |(((unsigned char)*(start +1)) << 8) 
00069                 |(((unsigned char)*(start +2)) << 16) 
00070                 |(((unsigned char)*(start +3)) << 24);
00071 
00072         /*      printf("String=0x%x %x %x %x:%u = %d\n", *start, *(start +1), *(start +2), *(start +3), *(start +3), value);*/
00073 
00074         return value;
00075 }

Here is the caller graph for this function:


Generated on Sun Mar 4 15:18:45 2007 for Scilab [trunk] by  doxygen 1.5.1