MCPcopy Create free account
hub / github.com/beefytech/Beef / StartCmd

Method StartCmd

BeefySysLib/util/BeefPerf.cpp:774–781  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

772}
773
774uint8* BpManager::StartCmd(uint8 cmd, CircularBuffer::View& view, int maxLen)
775{
776 mOutBuffer.GrowReserve(maxLen);
777 mOutBuffer.MapView(mOutBuffer.GetSize(), maxLen, view);
778 uint8* dataOut = view.mPtr;
779 GET_FROM(dataOut, uint8) = cmd;
780 return dataOut;
781}
782
783void BpManager::EndCmd(CircularBuffer::View& view, uint8* ptr)
784{

Callers

nothing calls this directly

Calls 3

GrowReserveMethod · 0.80
MapViewMethod · 0.80
GetSizeMethod · 0.45

Tested by

no test coverage detected