Home
last modified time | relevance | path

Searched refs:getBufferSize (Results 1 – 25 of 122) sorted by relevance

12345

/external/swiftshader/third_party/llvm-7.0/llvm/unittests/Support/
DMemoryBufferTest.cpp207 EXPECT_EQ(0x4000UL, MB.get()->getBufferSize()); in TEST_F()
222 EXPECT_EQ(0x3000UL, MB2.get()->getBufferSize()); in TEST_F()
250 ASSERT_EQ(0x6000u, MB.getBufferSize()); in TEST_F()
252 ASSERT_EQ(MB.getBufferEnd(), MB.getBufferStart() + MB.getBufferSize()); in TEST_F()
253 ::memset(Start, 'x', MB.getBufferSize()); in TEST_F()
259 ASSERT_EQ(0x10000u, MB.getBufferSize()); in TEST_F()
260 for (size_t i = 0; i < MB.getBufferSize(); i += 0x10) in TEST_F()
280 ASSERT_EQ(16u, MB.getBufferSize()); in TEST_F()
282 ASSERT_EQ(MB.getBufferEnd(), MB.getBufferStart() + MB.getBufferSize()); in TEST_F()
283 ::memset(Start, 'x', MB.getBufferSize()); in TEST_F()
[all …]
DFileOutputBufferTest.cpp152 ASSERT_EQ(10U, Buffer->getBufferSize()); in TEST()
165 ASSERT_EQ(10U, Buffer->getBufferSize()); in TEST()
/external/swiftshader/third_party/LLVM/utils/FileUpdate/
DFileUpdate.cpp59 if (Out && In->getBufferSize() == Out->getBufferSize() && in main()
61 Out->getBufferSize()) == 0) { in main()
81 OutStream.os().write(In->getBufferStart(), In->getBufferSize()); in main()
/external/clang/lib/Lex/
DHeaderMap.cpp67 if (File.getBufferSize() <= sizeof(HMapHeader)) in checkHeader()
95 if (File.getBufferSize() < in checkHeader()
129 assert(FileBuffer->getBufferSize() >= in getBucket()
153 if (StrTabIdx >= FileBuffer->getBufferSize()) in getString()
157 unsigned MaxLen = FileBuffer->getBufferSize() - StrTabIdx; in getString()
/external/llvm/lib/Support/
DLineIterator.cpp37 : Buffer(Buffer.getBufferSize() ? &Buffer : nullptr), in line_iterator()
39 CurrentLine(Buffer.getBufferSize() ? Buffer.getBufferStart() : nullptr, in line_iterator()
43 if (Buffer.getBufferSize()) { in line_iterator()
DFileUtilities.cpp202 uint64_t A_size = F1.getBufferSize(); in DiffFilesWithTolerance()
203 uint64_t B_size = F2.getBufferSize(); in DiffFilesWithTolerance()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Support/
DLineIterator.cpp37 : Buffer(Buffer.getBufferSize() ? &Buffer : nullptr), in line_iterator()
39 CurrentLine(Buffer.getBufferSize() ? Buffer.getBufferStart() : nullptr, in line_iterator()
43 if (Buffer.getBufferSize()) { in line_iterator()
DFileUtilities.cpp206 uint64_t A_size = F1.getBufferSize(); in DiffFilesWithTolerance()
207 uint64_t B_size = F2.getBufferSize(); in DiffFilesWithTolerance()
DFileOutputBuffer.cpp47 size_t getBufferSize() const override { return Buffer->size(); } in getBufferSize() function in __anonff73c5010111::OnDiskBuffer
82 size_t getBufferSize() const override { return Buffer.size(); } in getBufferSize() function in __anonff73c5010111::InMemoryBuffer
/external/llvm/include/llvm/Support/
DMemoryBuffer.h51 size_t getBufferSize() const { return BufferEnd-BufferStart; } in getBufferSize() function
54 return StringRef(BufferStart, getBufferSize()); in getBuffer()
165 size_t getBufferSize() const { return Buffer.size(); } in getBufferSize() function
/external/swiftshader/third_party/llvm-subzero/include/llvm/Support/
DMemoryBuffer.h57 size_t getBufferSize() const { return BufferEnd-BufferStart; } in getBufferSize() function
60 return StringRef(BufferStart, getBufferSize()); in getBuffer()
175 size_t getBufferSize() const { return Buffer.size(); } in getBufferSize() function
/external/swiftshader/third_party/LLVM/lib/Object/
DObjectFile.cpp29 if (!Object || Object->getBufferSize() < 64) in createObjectFile()
32 static_cast<unsigned>(Object->getBufferSize())); in createObjectFile()
DBinary.cpp48 if (Source->getBufferSize() < 64) in createBinary()
51 static_cast<unsigned>(Source->getBufferSize())); in createBinary()
/external/swiftshader/third_party/LLVM/include/llvm/Support/
DMemoryBuffer.h50 size_t getBufferSize() const { return BufferEnd-BufferStart; } in getBufferSize() function
53 return StringRef(BufferStart, getBufferSize()); in getBuffer()
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Support/
DMemoryBuffer.h62 size_t getBufferSize() const { return BufferEnd-BufferStart; } in getBufferSize() function
65 return StringRef(BufferStart, getBufferSize()); in getBuffer()
279 size_t getBufferSize() const { return Buffer.size(); } in getBufferSize() function
DFileOutputBuffer.h62 virtual size_t getBufferSize() const = 0;
/external/swiftshader/third_party/llvm-7.0/llvm/lib/DebugInfo/PDB/Native/
DPDBFileBuilder.cpp179 IS.Content->getBufferSize())); in finalizeMsfLayout()
184 Entry.FileSize = IS.Content->getBufferSize(); in finalizeMsfLayout()
203 SN = allocateNamedStream(IS.StreamName, IS.Content->getBufferSize()); in finalizeMsfLayout()
259 assert(SourceWriter.bytesRemaining() == IS.Content->getBufferSize()); in commitInjectedSources()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/ProfileData/
DInstrProfReader.cpp64 if (uint64_t(Buffer->getBufferSize()) > std::numeric_limits<unsigned>::max()) in create()
67 if (Buffer->getBufferSize() == 0) in create()
102 if (uint64_t(Buffer->getBufferSize()) > std::numeric_limits<unsigned>::max()) in create()
128 size_t count = std::min(Buffer.getBufferSize(), sizeof(uint64_t)); in hasFormat()
278 if (DataBuffer.getBufferSize() < sizeof(uint64_t)) in hasFormat()
290 if (DataBuffer->getBufferSize() < sizeof(RawInstrProf::Header)) in readHeader()
593 if (DataBuffer.getBufferSize() < 8) in hasFormat()
/external/llvm/lib/ProfileData/
DInstrProfReader.cpp46 if (Buffer->getBufferSize() > std::numeric_limits<unsigned>::max()) in create()
82 if (Buffer->getBufferSize() > std::numeric_limits<unsigned>::max()) in create()
108 size_t count = std::min(Buffer.getBufferSize(), sizeof(uint64_t)); in hasFormat()
255 if (DataBuffer.getBufferSize() < sizeof(uint64_t)) in hasFormat()
267 if (DataBuffer->getBufferSize() < sizeof(RawInstrProf::Header)) in readHeader()
567 if (DataBuffer.getBufferSize() < 8) in hasFormat()
/external/clang/tools/clang-format/
DClangFormat.cpp176 if (Offsets[i] >= Code->getBufferSize()) { in fillRanges()
184 if (Offsets[i] + Lengths[i] > Code->getBufferSize()) { in fillRanges()
248 if (Code->getBufferSize() == 0) in format()
/external/swiftshader/third_party/LLVM/lib/Archive/
DArchiveWriter.cpp228 fSize = mFile->getBufferSize(); in writeMember()
357 if (members.empty() && mapfile && mapfile->getBufferSize() > 8) { in writeToDisk()
462 arch->getBufferSize()-sizeof(ARFILE_MAGIC)+1); in writeToDisk()
/external/jsilver/src/com/google/clearsilver/jsilver/resourceloader/
DBufferedResourceLoader.java43 public int getBufferSize() { in getBufferSize() method in BufferedResourceLoader
/external/llvm/unittests/Support/
DMemoryBufferTest.cpp202 EXPECT_EQ(0x4000UL, MB.get()->getBufferSize()); in TEST_F()
217 EXPECT_EQ(0x3000UL, MB2.get()->getBufferSize()); in TEST_F()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/FuzzMutate/
DFuzzerCLI.cpp163 errs() << "Running: " << Arg << " (" << Buf->getBufferSize() << " bytes)\n"; in runFuzzerOnInputs()
165 Buf->getBufferSize()); in runFuzzerOnInputs()
/external/deqp/modules/glshared/
DglsTextureBufferCase.cpp428 genRandomCoords(rng, data, 0, texture.getBufferSize()); in modifyBufferData()
447 …, size_t((float)(texture.getSize() != 0 ? texture.getSize() : texture.getBufferSize()) * (0.7f + 0… in modifyBufferSubData()
449 …const size_t offset = minOffset + (rng.getUint32() % (texture.getBufferSize() - (size + minOff… in modifyBufferSubData()
470 …, size_t((float)(texture.getSize() != 0 ? texture.getSize() : texture.getBufferSize()) * (0.7f + 0… in modifyMapWrite()
472 …const size_t offset = minOffset + (rng.getUint32() % (texture.getBufferSize() - (size + minOff… in modifyMapWrite()
504 …, size_t((float)(texture.getSize() != 0 ? texture.getSize() : texture.getBufferSize()) * (0.7f + 0… in modifyMapReadWrite()
506 …const size_t offset = minOffset + (rng.getUint32() % (texture.getBufferSize() - (size + minOff… in modifyMapReadWrite()

12345