MCPcopy Create free account
hub / github.com/YDLIDAR/YDLidar-SDK / writeData

Method writeData

core/network/SimpleSocket.cpp:238–246  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

236}
237
238size_t CSimpleSocket::writeData(const uint8_t *data, size_t size) {
239 int32_t sz = Send(data, size);
240
241 if (sz < 0) {
242 return 0;
243 }
244
245 return sz;
246}
247
248size_t CSimpleSocket::readData(uint8_t *data, size_t size) {
249 int32_t rz = Receive(size, data);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected