mirror of
https://github.com/SFML/CSFML.git
synced 2026-10-26 13:06:13 +01:00
Replaced char* arguments for raw data with void*
This commit is contained in:
1 parent
9554c00851
commit
ad035ec09d
8 files changed
+12
-12
No files matched your search
@@ -68,7 +68,7 @@ public:
|
||||
/// \return The number of bytes actually read
|
||||
///
|
||||
////////////////////////////////////////////////////////////
|
||||
virtual sf::Int64 read(char* data, sf::Int64 size)
|
||||
virtual sf::Int64 read(void* data, sf::Int64 size)
|
||||
{
|
||||
return myStream.read ? myStream.read(data, size, myStream.userData) : -1;
|
||||
}
|
||||
|
||||
@@ -68,7 +68,7 @@ void sfPacket_clear(sfPacket* packet)
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
const char* sfPacket_getData(const sfPacket* packet)
|
||||
const void* sfPacket_getData(const sfPacket* packet)
|
||||
{
|
||||
CSFML_CALL_RETURN(packet, getData(), NULL);
|
||||
}
|
||||
|
||||
@@ -107,7 +107,7 @@ void sfTcpSocket_disconnect(sfTcpSocket* socket)
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
sfSocketStatus sfTcpSocket_send(sfTcpSocket* socket, const char* data, size_t size)
|
||||
sfSocketStatus sfTcpSocket_send(sfTcpSocket* socket, const void* data, size_t size)
|
||||
{
|
||||
CSFML_CHECK_RETURN(socket, sfSocketError);
|
||||
|
||||
@@ -116,7 +116,7 @@ sfSocketStatus sfTcpSocket_send(sfTcpSocket* socket, const char* data, size_t si
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
sfSocketStatus sfTcpSocket_receive(sfTcpSocket* socket, char* data, size_t maxSize, size_t* sizeReceived)
|
||||
sfSocketStatus sfTcpSocket_receive(sfTcpSocket* socket, void* data, size_t maxSize, size_t* sizeReceived)
|
||||
{
|
||||
CSFML_CHECK_RETURN(socket, sfSocketError);
|
||||
|
||||
|
||||
@@ -84,7 +84,7 @@ void sfUdpSocket_unbind(sfUdpSocket* socket)
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
sfSocketStatus sfUdpSocket_send(sfUdpSocket* socket, const char* data, size_t size, sfIpAddress address, unsigned short port)
|
||||
sfSocketStatus sfUdpSocket_send(sfUdpSocket* socket, const void* data, size_t size, sfIpAddress address, unsigned short port)
|
||||
{
|
||||
CSFML_CHECK_RETURN(socket, sfSocketError);
|
||||
|
||||
@@ -96,7 +96,7 @@ sfSocketStatus sfUdpSocket_send(sfUdpSocket* socket, const char* data, size_t si
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
sfSocketStatus sfUdpSocket_receive(sfUdpSocket* socket, char* data, size_t maxSize, size_t* sizeReceived, sfIpAddress* address, unsigned short* port)
|
||||
sfSocketStatus sfUdpSocket_receive(sfUdpSocket* socket, void* data, size_t maxSize, size_t* sizeReceived, sfIpAddress* address, unsigned short* port)
|
||||
{
|
||||
CSFML_CHECK_RETURN(socket, sfSocketError);
|
||||
|
||||
|
||||
Reference in new issue
Block a user