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

+7
View File
@@ -60,6 +60,13 @@ void sfPacket_append(sfPacket* packet, const void* data, size_t sizeInBytes)
}
////////////////////////////////////////////////////////////
size_t sfPacket_getReadPosition(const sfPacket* packet)
{
CSFML_CALL_RETURN(packet, getReadPosition(), 0);
}
////////////////////////////////////////////////////////////
void sfPacket_clear(sfPacket* packet)
{