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

Method Read

pcsx2/StateWrapper.cpp:83–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81}
82
83u32 StateWrapper::ReadOnlyMemoryStream::Read(void* buf, u32 count)
84{
85 count = std::min(m_buf_length - m_buf_position, count);
86 if (count > 0)
87 {
88 std::memcpy(buf, &m_buf[m_buf_position], count);
89 m_buf_position += count;
90 }
91 return count;
92}
93
94u32 StateWrapper::ReadOnlyMemoryStream::Write(const void* buf, u32 count)
95{

Callers 2

DoBytesMethod · 0.45
DoMethod · 0.45

Calls 2

minFunction · 0.50
sizeMethod · 0.45

Tested by

no test coverage detected