Home
last modified time | relevance | path

Searched refs:m_Span (Results 1 – 6 of 6) sorted by relevance

/external/pdfium/core/fxcrt/
Dstring_view_template.h43 : m_Span(reinterpret_cast<const UnsignedType*>(ptr), in StringViewTemplate()
47 : m_Span(reinterpret_cast<const UnsignedType*>(ptr), len) {} in StringViewTemplate()
51 : m_Span(reinterpret_cast<const UnsignedType*>(other.data()), in StringViewTemplate()
60 : m_Span(ptr, size) {} in m_Span() function
67 : m_Span(other) {} in m_Span() function
73 : m_Span(reinterpret_cast<const UnsignedType*>(&ch), 1) {} in StringViewTemplate()
79 : m_Span(!vec.empty() ? vec.data() : nullptr, vec.size()) {} in StringViewTemplate()
82 m_Span = pdfium::span<const UnsignedType>(
88 m_Span = src.m_Span;
93 return reinterpret_cast<const_iterator>(m_Span.begin()); in begin()
[all …]
/external/pdfium/core/fxcodec/jbig2/
DJBig2_BitStream.cpp23 : m_Span(ValidatedSpan(pSrcStream)), m_dwObjNum(dwObjNum) {} in CJBig2_BitStream()
43 (*dwResult << 1) | ((m_Span[m_dwByteIdx] >> (7 - m_dwBitIdx)) & 0x01); in readNBits()
65 (*nResult << 1) | ((m_Span[m_dwByteIdx] >> (7 - m_dwBitIdx)) & 0x01); in readNBits()
75 *dwResult = (m_Span[m_dwByteIdx] >> (7 - m_dwBitIdx)) & 0x01; in read1Bit()
84 *bResult = (m_Span[m_dwByteIdx] >> (7 - m_dwBitIdx)) & 0x01; in read1Bit()
93 *cResult = m_Span[m_dwByteIdx]; in read1Byte()
99 if (m_dwByteIdx + 3 >= m_Span.size()) in readInteger()
102 *dwResult = (m_Span[m_dwByteIdx] << 24) | (m_Span[m_dwByteIdx + 1] << 16) | in readInteger()
103 (m_Span[m_dwByteIdx + 2] << 8) | m_Span[m_dwByteIdx + 3]; in readInteger()
109 if (m_dwByteIdx + 1 >= m_Span.size()) in readShortInteger()
[all …]
DJBig2_BitStream.h38 uint32_t getLength() const { return m_Span.size(); } in getLength()
49 const pdfium::span<const uint8_t> m_Span; variable
/external/pdfium/testing/
Dtest_loader.cpp11 TestLoader::TestLoader(pdfium::span<const char> span) : m_Span(span) {} in TestLoader()
19 if (pos + size < pos || pos + size > pLoader->m_Span.size()) { in GetBlock()
24 memcpy(pBuf, &pLoader->m_Span[pos], size); in GetBlock()
Dtest_loader.h20 const pdfium::span<const char> m_Span;
/external/pdfium/testing/fuzzers/
Dpdfium_fuzzer_helper.cc32 explicit FuzzerTestLoader(pdfium::span<const char> span) : m_Span(span) {} in FuzzerTestLoader()
39 if (pos + size < pos || pos + size > pLoader->m_Span.size()) { in GetBlock()
44 memcpy(pBuf, &pLoader->m_Span[pos], size); in GetBlock()
49 const pdfium::span<const char> m_Span; member in __anondde35c5e0111::FuzzerTestLoader