Lines Matching refs:MemoryBuffer
38 typedef std::unique_ptr<MemoryBuffer> OwningBuffer;
45 OwningBuffer MB1(MemoryBuffer::getMemBuffer(data)); in TEST_F()
49 OwningBuffer MB2(MemoryBuffer::getMemBuffer(data, "one", false)); in TEST_F()
53 OwningBuffer MB3(MemoryBuffer::getMemBuffer(data, "two", true)); in TEST_F()
80 ErrorOr<OwningBuffer> MB = MemoryBuffer::getFile(TestPath.c_str()); in TEST_F()
91 OwningBuffer MBC1(MemoryBuffer::getMemBufferCopy(data)); in TEST_F()
95 OwningBuffer MBC2(MemoryBuffer::getMemBufferCopy(data, "copy")); in TEST_F()
104 OwningBuffer Zero(MemoryBuffer::getNewUninitMemBuffer(0)); in TEST_F()
108 OwningBuffer One(MemoryBuffer::getNewUninitMemBuffer(321)); in TEST_F()
112 OwningBuffer Two(MemoryBuffer::getNewUninitMemBuffer(123, "bla")); in TEST_F()
116 OwningBuffer Three(MemoryBuffer::getNewMemBuffer(321, data)); in TEST_F()
122 OwningBuffer Four(MemoryBuffer::getNewMemBuffer(123, "zeros")); in TEST_F()
150 MemoryBuffer::getOpenFileSlice(TestFD, TestPath.c_str(), in testGetOpenFileSlice()
173 OwningBuffer MB(MemoryBuffer::getMemBuffer(data)); in TEST_F()
198 ErrorOr<OwningBuffer> MB = MemoryBuffer::getFileSlice(TestPath.str(), in TEST_F()
213 ErrorOr<OwningBuffer> MB2 = MemoryBuffer::getFileSlice(TestPath.str(), in TEST_F()