MCPcopy Create free account
hub / github.com/comaps/comaps / Read

Method Read

libs/coding/internal/file_data.cpp:112–120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

110}
111
112void FileData::Read(uint64_t pos, void * p, size_t size)
113{
114 if (fseek64(m_File, static_cast<off_t>(pos), SEEK_SET))
115 MYTHROW(Reader::ReadException, (GetErrorProlog(), pos));
116
117 size_t const bytesRead = fread(p, 1, size, m_File);
118 if (bytesRead != size || ferror(m_File))
119 MYTHROW(Reader::ReadException, (GetErrorProlog(), bytesRead, pos, size));
120}
121
122uint64_t FileData::Pos() const
123{

Callers 2

IsEqualFilesFunction · 0.45
ReadFileFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected