Utility class that points to a specific position in a resource and offers an interface for sequential writing. More...
Public Member Functions | |
| Writer (Resource &resource, std::size_t position) | |
| Resource & | resource () const |
| std::size_t | position () const |
| void | setPosition (std::size_t value) |
| void | seek (std::ptrdiff_t offset) |
| void | write (const void *sourceBuffer, std::size_t length) |
| template<typename T > | |
| void | writePod (const T &t, ByteOrder bo=boDontCare) |
| Convenience function; equivalent to write(&t, sizeof t). More... | |
Utility class that points to a specific position in a resource and offers an interface for sequential writing.
| Gosu::Writer::Writer | ( | Resource & | resource, |
| std::size_t | position | ||
| ) |
| void Gosu::Writer::write | ( | const void * | sourceBuffer, |
| std::size_t | length | ||
| ) |
Referenced by writePod().
| void Gosu::Writer::writePod | ( | const T & | t, |
| ByteOrder | bo = boDontCare |
||
| ) |
Convenience function; equivalent to write(&t, sizeof t).
Definition at line 123 of file IO.hpp.
References Gosu::otherByteOrder, and write().