Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

37 lines
569 B

#include "precomp.h"
#pragma hdrstop
#include "fileio.h"
#include <string.h>
void read_float(istream& is, float& v)
{
is.read((char*)&v,sizeof(float));
}
void read_DWORD(istream& is, DWORD& v)
{
is.read((char*)&v,sizeof(DWORD));
}
void read_WORD(istream& is, WORD& v)
{
is.read((char*)&v,sizeof(WORD));
}
void skip_bytes(istream&is, DWORD i)
{
is.seekg(i,ios::cur);
}
#ifndef __DUMP_DATA
void write_string(ostream& os, char *str)
{
int n = strlen(str);
os << str;
//os.write((char*)&str,sizeof(unsigned));
}
#endif //__DUMP_DATA