MCPcopy Create free account
hub / github.com/OSVR/OSVR-Core / osvrDeviceSendData

Function osvrDeviceSendData

src/osvr/PluginKit/DeviceInterfaceC.cpp:51–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49}
50
51OSVR_ReturnCode osvrDeviceSendData(OSVR_IN_PTR OSVR_DeviceToken dev,
52 OSVR_IN_PTR OSVR_MessageType msg,
53 OSVR_IN_READS(len) const char *bytestream,
54 OSVR_IN size_t len) {
55 OSVR_DEV_VERBOSE(
56 "In osvrDeviceSendData, trying to send a message of length " << len);
57 OSVR_PLUGIN_HANDLE_NULL_CONTEXT("osvrDeviceSendData device token", dev);
58 OSVR_PLUGIN_HANDLE_NULL_CONTEXT("osvrDeviceSendData message type", msg);
59 dev->sendData(msg, bytestream, len);
60 return OSVR_RETURN_SUCCESS;
61}
62
63OSVR_ReturnCode osvrDeviceSendTimestampedData(
64 OSVR_IN_PTR OSVR_DeviceToken dev, OSVR_IN_PTR OSVR_TimeValue *timestamp,

Callers 3

m_updateMethod · 0.85
m_updateMethod · 0.85
sendDataMethod · 0.85

Calls 1

sendDataMethod · 0.45

Tested by

no test coverage detected