blob: 8d9fb6d4141972f555cf51ca6061b886f79248a5 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include <cstdint>
namespace zen {
// state.cbo schema version. Bump on any incompatible change to the manifest layout.
// Hydrate refuses to read a manifest with a higher version than this. Manifests written
// by older binaries omit the field; treated as version 0 and decoded best-effort
// (missing optional fields like Packs[] / StorageSettings fall back to defaults).
inline constexpr uint32_t HydrationSchemaVersion = 1;
// Multipart chunk size used by the S3 backend when hydrating/dehydrating large files.
// Dehydrate writes the chosen size into state.cbo so hydrate replays with the same
// partitioning. State records without the field fall back to this default.
inline constexpr uint64_t DefaultMultipartChunkSize = 64u * 1024u * 1024u;
// Files strictly smaller than this are candidates for packing.
inline constexpr uint64_t DefaultPackThresholdBytes = 256u * 1024u;
// Upper bound on the concatenation size of a single pack. Packs are stored raw (no compression).
inline constexpr uint64_t DefaultMaxPackBytes = 4u * 1024u * 1024u;
} // namespace zen
|