PR 1641 Added method to get the current read position of sf::Packet

This commit is contained in:
Shane Whitmire authored and Lukas Dürrenberger committed 2023-06-26 21:20:24 +02:00
1 parent e606b52c39
commit 7d2ebaf265
2 files changed
+19

No files matched your search

+12
View File
@@ -69,6 +69,18 @@ CSFML_NETWORK_API void sfPacket_destroy(sfPacket* packet);
////////////////////////////////////////////////////////////
CSFML_NETWORK_API void sfPacket_append(sfPacket* packet, const void* data, size_t sizeInBytes);
////////////////////////////////////////////////////////////
/// \brief Get the current reading position in the packet
///
/// The next read operation will read data from this position
///
/// \return The byte offset of the current read position
///
/// \see append
///
////////////////////////////////////////////////////////////
CSFML_NETWORK_API size_t sfPacket_getReadPosition(const sfPacket* packet);
////////////////////////////////////////////////////////////
/// \brief Clear a packet
///