Skip to content

burninrubber0/GameDataStream

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GameDataStream

A subclass of QDataStream intended to make handling video game assets easier.

Changes include the following:

  • Adds platform-based endianness differentiation
  • Adds platform-based 32/64 bit pointer length differentiation
  • Adds read/write support for pointers, size_t, and strings (both fixed-length and null-terminated)
  • Makes QIODevice's seek(), peek(), pos(), open(), and close() available without calling device()
  • Adds skip() for arbitrary-length skips (based on QIODevice::seek()QIODevice::skip() behaves differently)
  • Overloads readRawData() to read into another DataStream's device (useful for maintaining a buffer with unknown data and/or padding)

This is by no means perfect or complete, but it's done everything I need it to so far. If someone else ends up using this, feel free to open a pull request with any changes you want added.

About

A subclass of QDataStream intended to make handling video game assets easier.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors