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()
252 std::unique_ptr<void, void (*)(void *)> buf_mem( in ReadRawDataOfFile() local254 if (buf_mem == nullptr) { in ReadRawDataOfFile()258 uint8_t *buf = static_cast<uint8_t *>(buf_mem.get()); in ReadRawDataOfFile()895 std::unique_ptr<void, void (*)(void *)> buf_mem( in TestEmmcOptimizedDunWraparound() local897 ASSERT_TRUE(buf_mem != nullptr); in TestEmmcOptimizedDunWraparound()898 memcpy(buf_mem.get(), &file_info.plaintext[0], data_size); in TestEmmcOptimizedDunWraparound()901 ASSERT_EQ(data_size, pwrite(fd, buf_mem.get(), data_size, pos)) in TestEmmcOptimizedDunWraparound()