mirror of
https://github.com/mhx/dwarfs.git
synced 2025-09-12 13:59:46 -04:00
refactor: move offset_cache to internal namespace
This commit is contained in:
parent
f172a44e37
commit
088849126c
@ -33,7 +33,7 @@
|
||||
|
||||
#include <dwarfs/small_vector.h>
|
||||
|
||||
namespace dwarfs {
|
||||
namespace dwarfs::internal {
|
||||
|
||||
template <typename InodeT, typename FileOffsetT, typename ChunkIndexT,
|
||||
size_t ChunkIndexInterval, size_t UpdaterMaxInlineOffsets>
|
||||
@ -201,4 +201,4 @@ class basic_offset_cache {
|
||||
std::mutex mutable mx_;
|
||||
};
|
||||
|
||||
} // namespace dwarfs
|
||||
} // namespace dwarfs::internal
|
@ -36,9 +36,9 @@
|
||||
#include <dwarfs/block_cache.h>
|
||||
#include <dwarfs/fstypes.h>
|
||||
#include <dwarfs/internal/inode_reader_v2.h>
|
||||
#include <dwarfs/internal/offset_cache.h>
|
||||
#include <dwarfs/iovec_read_buf.h>
|
||||
#include <dwarfs/logger.h>
|
||||
#include <dwarfs/offset_cache.h>
|
||||
#include <dwarfs/options.h>
|
||||
#include <dwarfs/performance_monitor.h>
|
||||
|
||||
|
@ -28,7 +28,7 @@
|
||||
#include <vector>
|
||||
|
||||
#include <dwarfs/error.h>
|
||||
#include <dwarfs/offset_cache.h>
|
||||
#include <dwarfs/internal/offset_cache.h>
|
||||
#include <dwarfs/options.h>
|
||||
#include <dwarfs/util.h>
|
||||
|
||||
@ -190,7 +190,8 @@ TEST(utils, shorten_path_utf8) {
|
||||
|
||||
namespace {
|
||||
|
||||
using cache_type = basic_offset_cache<uint32_t, uint32_t, uint32_t, 4, 4>;
|
||||
using cache_type =
|
||||
internal::basic_offset_cache<uint32_t, uint32_t, uint32_t, 4, 4>;
|
||||
constexpr std::array<cache_type::file_offset_type, 32> const test_chunks{
|
||||
3, 15, 13, 1, 11, 6, 9, 15, 1, 16, 1, 13, 11, 16, 10, 14,
|
||||
4, 14, 4, 16, 8, 12, 16, 2, 16, 10, 15, 15, 2, 15, 5, 8,
|
||||
|
Loading…
x
Reference in New Issue
Block a user