MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/PhysX / write

Method write

physx/source/foundation/src/unix/PsUnixSocket.cpp:306–317  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

304}
305
306uint32_t SocketImpl::write(const uint8_t* data, uint32_t length)
307{
308 if(length == 0)
309 return 0;
310
311 int sent = send(mSocket, reinterpret_cast<const char*>(data), int32_t(length), 0);
312
313 if(sent <= 0 && !nonBlockingTimeout())
314 disconnect();
315
316 return uint32_t(sent > 0 ? sent : 0);
317}
318
319uint32_t SocketImpl::read(uint8_t* data, uint32_t length)
320{

Callers

nothing calls this directly

Calls 4

memCopyFunction · 0.50
writeFunction · 0.50
memMoveFunction · 0.50
isConnectedMethod · 0.45

Tested by

no test coverage detected