Searched refs:buf_mem (Results 1 – 2 of 2) sorted by relevance
102 std::unique_ptr<void, void (*)(void *)> buf_mem( in ReadBlockDevice() local104 if (buf_mem == nullptr) { in ReadBlockDevice()108 uint8_t *buffer = static_cast<uint8_t *>(buf_mem.get()); in ReadBlockDevice()
249 std::unique_ptr<void, void (*)(void *)> buf_mem( in ReadRawDataOfFile() local251 if (buf_mem == nullptr) { in ReadRawDataOfFile()255 uint8_t *buf = static_cast<uint8_t *>(buf_mem.get()); in ReadRawDataOfFile()892 std::unique_ptr<void, void (*)(void *)> buf_mem( in TestEmmcOptimizedDunWraparound() local894 ASSERT_TRUE(buf_mem != nullptr); in TestEmmcOptimizedDunWraparound()895 memcpy(buf_mem.get(), &file_info.plaintext[0], data_size); in TestEmmcOptimizedDunWraparound()898 ASSERT_EQ(data_size, pwrite(fd, buf_mem.get(), data_size, pos)) in TestEmmcOptimizedDunWraparound()