Open Source Tomb Raider Engine
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.

binary.h 448B

123456789101112131415161718192021222324252627282930
  1. /*!
  2. * \file include/utils/binary.h
  3. * \brief Binary file reading utilities
  4. *
  5. * \author xythobuz
  6. */
  7. #ifndef _UTILS_BINARY_H_
  8. #define _UTILS_BINARY_H_
  9. void binOpen(const char *file);
  10. void binClose();
  11. unsigned long binTell();
  12. void binSeek(unsigned long pos);
  13. int8_t binRead8();
  14. uint8_t binReadU8();
  15. int16_t binRead16();
  16. uint16_t binReadU16();
  17. int32_t binRead32();
  18. uint32_t binReadU32();
  19. int64_t binRead64();
  20. uint64_t binReadU64();
  21. #endif