Home
last modified time | relevance | path

Searched refs:ValueOrDie (Results 1 – 18 of 18) sorted by relevance

/external/pdfium/core/src/fxcrt/
Dextension.h78 if (!pos.IsValid() || pos.ValueOrDie() > m_pFile->GetSize()) { in SetRange()
100 if (!pos.IsValid() || pos.ValueOrDie() > (size_t)GetSize()) { in ReadBlock()
104 return (FX_BOOL)m_pFile->ReadPos(buffer, size, pos.ValueOrDie()); in ReadBlock()
205 if (!range.IsValid() || range.ValueOrDie() > m_nCurSize) { in SetRange()
233 offset = safeOffset.ValueOrDie(); in ReadBlock()
237 … if (!newPos.IsValid() || newPos.ValueOrDefault(0) == 0 || newPos.ValueOrDie() > m_nCurSize) { in ReadBlock()
241 m_nCurPos = newPos.ValueOrDie(); in ReadBlock()
292 m_nCurPos = newPos.ValueOrDie(); in WriteBlock()
319 if (!ExpandBlocks(newPos.ValueOrDie())) { in WriteBlock()
322 m_nCurPos = newPos.ValueOrDie(); in WriteBlock()
Dfx_basic_array.cpp41 m_pData = FX_Alloc(FX_BYTE, totalSize.ValueOrDie()); in SetSize()
55 FX_LPBYTE pNewData = FX_Realloc(FX_BYTE, m_pData, totalSize.ValueOrDie()); in SetSize()
71 if (m_nUnitSize != src.m_nUnitSize || !newSize.IsValid() || !SetSize(newSize.ValueOrDie())) { in Append()
Dfx_basic_wstring.cpp32 int totalSize = iSize.ValueOrDie() & ~7; in Create()
36 void* pData = FX_Alloc(FX_BYTE, iSize.ValueOrDie()); in Create()
413 FXSYS_memcpy32(dest.m_pData->m_String, m_pData->m_String + nCopyIndex, iSize.ValueOrDie()); in AllocCopy()
Dfx_basic_bstring.cpp71 int totalSize = nSize.ValueOrDie() & ~7; in Create()
/external/pdfium/core/src/fpdfapi/fpdf_render/
Dfpdf_render_loadimage.cpp210 m_pStreamAcc->LoadAllData(pStream, FALSE, src_pitch.ValueOrDie(), TRUE); in Load()
233 m_pLineBuf = FX_Alloc(FX_BYTE, pitch.ValueOrDie()); in Load()
245 m_pMaskedLine = FX_Alloc(FX_BYTE, pitch.ValueOrDie()); in Load()
247 m_Pitch = pitch.ValueOrDie(); in Load()
277 m_pLineBuf = FX_Alloc(FX_BYTE, pitch.ValueOrDie()); in ContinueToLoadMask()
289 m_pMaskedLine = FX_Alloc(FX_BYTE, pitch.ValueOrDie()); in ContinueToLoadMask()
291 m_Pitch = pitch.ValueOrDie(); in ContinueToLoadMask()
325 m_pStreamAcc->LoadAllData(pStream, FALSE, src_pitch.ValueOrDie(), TRUE); in StartLoadDIBSource()
624 if (provided_pitch.ValueOrDie() < requested_pitch.ValueOrDie()) { in CreateDecoder()
1043 FX_DWORD src_pitch_value = src_pitch.ValueOrDie(); in GetScanline()
[all …]
Dfpdf_render_image.cpp1022 FXSYS_memset32(pFloats, 0, num_floats.ValueOrDie()); in LoadSMask()
/external/v8/src/
Dhydrogen-dehoist.cc40 value = multiply_result.ValueOrDie(); in DehoistArrayIndex()
Dhydrogen-instructions.cc3442 base_offset = addition_result.ValueOrDie(); in TryIncreaseBaseOffset()
4009 base_offset_ = addition_result.ValueOrDie(); in TryIncreaseBaseOffset()
/external/pdfium/core/src/fpdfapi/fpdf_page/
Dfpdf_page_func.cpp570 bitpos1 += bitpos.ValueOrDie(); in v_Call()
575 …FX_DWORD sample = _GetBits32(pSampleData, bitpos.ValueOrDie() + j * m_nBitsPerSample, m_nBitsPerSa… in v_Call()
591 FX_DWORD sample1 = _GetBits32(pSampleData, bitpos2.ValueOrDie(), m_nBitsPerSample); in v_Call()
/external/pdfium/core/src/fpdfapi/fpdf_parser/
Dfpdf_parser_parser.cpp1066 FX_DWORD totalWidth = dwAccWidth.ValueOrDie(); in LoadCrossRefV5()
1082 if (!dwCaculatedSize.IsValid() || dwCaculatedSize.ValueOrDie() > dwTotalSize) { in LoadCrossRefV5()
1089 if (!dwMaxObjNum.IsValid() || dwMaxObjNum.ValueOrDie() > dwV5Size) { in LoadCrossRefV5()
2443 if (pos.IsValid() && pos.ValueOrDie() < m_FileLen) { in ReadStream()
2444 m_Pos = pos.ValueOrDie(); in ReadStream()
3085 if (size.ValueOrDie() > m_dwFileLen) { in IsObjectsAvail()
3093 if (!m_pFileAvail->IsDataAvail(offset, size.ValueOrDie())) { in IsObjectsAvail()
3094 pHints->AddSegment(offset, size.ValueOrDie()); in IsObjectsAvail()
3316 if (size.ValueOrDie() > m_dwFileLen) { in GetObject()
3326 if (!m_pFileAvail->IsDataAvail(offset, size.ValueOrDie())) { in GetObject()
[all …]
/external/v8/src/base/
Dsafe_math.h77 T ValueOrDie() const { in ValueOrDie() function
/external/pdfium/third_party/base/numerics/
Dsafe_math.h74 T ValueOrDie() const { in ValueOrDie() function
/external/pdfium/fpdfsdk/src/
Dfpdfview.cpp30 if (!newPos.IsValid() || newPos.ValueOrDie() > m_FileAccess.m_FileLen) { in ReadBlock()
216 if (!newPos.IsValid() || newPos.ValueOrDie() > (FX_DWORD)m_size) { in ReadBlock()
/external/pdfium/fpdfsdk/src/pdfwindow/
DPWL_Edit.cpp429 path.SetPointCount(nCharArraySafe.ValueOrDie()); in DrawThisAppearance()
454 path.SetPointCount(nCharArraySafe.ValueOrDie()); in DrawThisAppearance()
/external/pdfium/core/src/fxcodec/codec/
Dfx_codec_jpeg.cpp143 dest_buf_length = safe_buf_len.ValueOrDie(); in _JpegEncode()
/external/pdfium/fpdfsdk/src/javascript/
DDocument.cpp1246 wchar_t* pResult = (wchar_t*)malloc(iSize.ValueOrDie()); in ReversalStr()
1267 wchar_t* pResult = (wchar_t*)malloc(iSize.ValueOrDie()); in CutString()
/external/pdfium/core/src/fxge/ge/
Dfx_ge_path.cpp168 int new_count = safe_new_count.ValueOrDie(); in AddPointCount()
/external/pdfium/core/src/fxcodec/jbig2/
DJBig2_Image.cpp782 m_pData = (FX_BYTE*)m_pModule->JBig2_Realloc(m_pData, safeMemSize.ValueOrDie()); in expand()