* Updated copyright headers
* Revert "Fixed linker warnings in docs snippets on Windows (#15119)"
This reverts commit 372699ec49.
20 lines
378 B
C++
20 lines
378 B
C++
// Copyright (C) 2018-2023 Intel Corporation
|
|
// 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;
|
|
};
|