MCPcopy Create free account
hub / github.com/PCSX2/pcsx2 / size

Method size

pcsx2/USB/shared/ringbuffer.cpp:29–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27}
28
29size_t RingBuffer::size() const
30{
31 if (m_wpos == m_rpos)
32 return m_full ? m_capacity : 0;
33 else if (m_wpos > m_rpos)
34 return m_wpos - m_rpos;
35 else
36 return (m_capacity - m_rpos) + m_wpos;
37}
38
39size_t RingBuffer::read(void* dst, size_t nbytes)
40{

Callers 15

ParseCommandLineArgsMethod · 0.45
wmainFunction · 0.45
resizeAndScalePixmapFunction · 0.45
StringViewToQStringFunction · 0.45
SetWindowResizeableFunction · 0.45
getChangesCompleteMethod · 0.45
processUpdateMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected