|
Gosu
|
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 | set_position (std::size_t value) |
| void | seek (std::ptrdiff_t offset) |
| void | write (const void *source_buffer, std::size_t length) |
| template<typename T > | |
| void | write_pod (const T &t, ByteOrder bo=BO_DONT_CARE) |
| 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 * | source_buffer, |
| std::size_t | length | ||
| ) |
| void Gosu::Writer::write_pod | ( | const T & | t, |
| ByteOrder | bo = BO_DONT_CARE |
||
| ) |
1.8.13