nx_storage_sdk  1.0
Storage SDK
vfs.h
1 // Copyright 2018-present Network Optix, Inc. Licensed under MPL 2.0: www.mozilla.org/MPL/2.0/
2 
3 #pragma once
4 
5 #include <string>
6 #include <functional>
7 #include <cstdint>
8 
9 #include <common.h>
10 #include "detail/fs_stub.h"
11 
12 namespace utils {
13 
14 std::string fsJoin(const std::string& subPath1, const std::string& subPath2);
15 
16 struct VfsPair
17 {
18  std::string sampleFilePath;
19  int64_t sampleFileSize;
20  FsStubNode* root;
21 
22  VfsPair() : root(nullptr) {}
23 };
24 
51 NX_TEST_STORAGE_PLUGIN_API bool buildVfsFromJson(const char* jsonString, const char* rootPath, VfsPair* outVfsPair);
52 }
Definition: fs_stub.h:16
Definition: url.cpp:6
Definition: vfs.h:16