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

  1. #include "precomp.h"
  2. #pragma hdrstop
  3. #include "fileio.h"
  4. #include <string.h>
  5. void read_float(istream& is, float& v)
  6. {
  7. is.read((char*)&v,sizeof(float));
  8. }
  9. void read_DWORD(istream& is, DWORD& v)
  10. {
  11. is.read((char*)&v,sizeof(DWORD));
  12. }
  13. void read_WORD(istream& is, WORD& v)
  14. {
  15. is.read((char*)&v,sizeof(WORD));
  16. }
  17. void skip_bytes(istream&is, DWORD i)
  18. {
  19. is.seekg(i,ios::cur);
  20. }
  21. #ifndef __DUMP_DATA
  22. void write_string(ostream& os, char *str)
  23. {
  24. int n = strlen(str);
  25. os << str;
  26. //os.write((char*)&str,sizeof(unsigned));
  27. }
  28. #endif //__DUMP_DATA