Added readCurrentReadPosition in sf::Packet
This commit is contained in:
parent
1d20edebc7
commit
632a015663
2 changed files with 18 additions and 0 deletions
|
@ -72,10 +72,21 @@ public:
|
|||
/// \param sizeInBytes Number of bytes to append
|
||||
///
|
||||
/// \see clear
|
||||
/// \see readCurrentReadPosition
|
||||
///
|
||||
////////////////////////////////////////////////////////////
|
||||
void append(const void* data, std::size_t sizeInBytes);
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// \brief Get a current reading position
|
||||
///
|
||||
/// \return Current position
|
||||
///
|
||||
/// \see append
|
||||
///
|
||||
////////////////////////////////////////////////////////////
|
||||
std::size_t getReadPosition() const;
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// \brief Clear the packet
|
||||
///
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue