23 if (buffer.empty() || offset < 0)
26 if (!pdfium::base::IsValueInRangeForNumericType<
FX_FILESIZE>(buffer.size()))
29 FX_SAFE_FILESIZE new_pos = buffer.size();
31 return new_pos.IsValid() && new_pos.ValueOrDie() <=
GetSize() &&
32 m_FileAccess.m_GetBlock(
34 pdfium::base::checked_cast<
unsigned long>(offset), buffer.data(),
35 pdfium::base::checked_cast<
unsigned long>(buffer.size()));