MCPcopy Create free account
hub / github.com/OpenZWave/open-zwave / Read

Method Read

cpp/src/platform/Controller.cpp:54–67  ·  view source on GitHub ↗

----------------------------------------------------------------------------- Read from a controller -----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

52// Read from a controller
53//-----------------------------------------------------------------------------
54uint32 Controller::Read
55(
56 uint8* _buffer,
57 uint32 _length
58)
59{
60 // Fetch the data from the ring buffer (which is an all or nothing read)
61 if( Get( _buffer, _length ) )
62 {
63 return _length;
64 }
65
66 return 0;
67}
68

Callers 1

ReadMsgMethod · 0.45

Calls 1

GetFunction · 0.50

Tested by

no test coverage detected