2023-01-16 11:02:17 +04:00
|
|
|
// Copyright (C) 2018-2023 Intel Corporation
|
2021-06-14 17:00:49 +03:00
|
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
//
|
|
|
|
|
|
|
|
|
|
#include <stddef.h>
|
|
|
|
|
|
|
|
|
|
class MemoryFile {
|
|
|
|
|
public:
|
|
|
|
|
/// Create a memory backed file
|
|
|
|
|
MemoryFile(const void *data, size_t size);
|
|
|
|
|
/// Delete memory backed file
|
|
|
|
|
~MemoryFile();
|
|
|
|
|
|
|
|
|
|
/// Get path to a file.
|
|
|
|
|
const char *name() { return m_name; }
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
char *m_name;
|
|
|
|
|
};
|