MCPcopy Create free account
hub / github.com/360Controller/360Controller / IsDataAvailable

Method IsDataAvailable

WirelessGamingReceiver/WirelessDevice.cpp:40–48  ·  view source on GitHub ↗

Checks if there's any data for us

Source from the content-addressed store, hash-verified

38
39// Checks if there's any data for us
40bool WirelessDevice::IsDataAvailable(void)
41{
42 if (index == -1)
43 return false;
44 WirelessGamingReceiver *receiver = OSDynamicCast(WirelessGamingReceiver, getProvider());
45 if (receiver == NULL)
46 return false;
47 return receiver->IsDataQueued(index);
48}
49
50// Gets the next item from our buffer
51IOMemoryDescriptor* WirelessDevice::NextPacket(void)

Callers

nothing calls this directly

Calls 1

IsDataQueuedMethod · 0.80

Tested by

no test coverage detected