Add IStreamReader::seekAlign4()

This commit is contained in:
Jack Andersen 2017-04-21 20:41:48 -10:00
parent f3226c6102
commit c043178254
1 changed files with 4 additions and 0 deletions

View File

@ -39,6 +39,10 @@ public:
*/
inline void seekAlign16() {seek(ROUND_UP_16(position()), SeekOrigin::Begin); }
/** @brief Sets the buffer's position relative to the next 4-byte aligned position.<br />
*/
inline void seekAlign4() {seek(ROUND_UP_4(position()), SeekOrigin::Begin); }
/** @brief Returns whether or not the stream is at the end.
*
* @return True if at end; False otherwise.