Android-cuttlefish cvd tool
Namespaces | Macros | Functions
incremental_utils.cpp File Reference
#include "incremental_utils.h"
#include <algorithm>
#include <array>
#include <cstring>
#include <format>
#include <numeric>
#include <optional>
#include <unordered_set>
#include <utility>
#include <android-base/endian.h>
#include <android-base/mapped_file.h>
#include <android-base/strings.h>
#include "adb_io.h"
#include "adb_trace.h"
#include "sysdeps.h"
Include dependency graph for incremental_utils.cpp:

Namespaces

namespace  incremental
 

Macros

#define TRACE_TAG   INCREMENTAL
 

Functions

Size incremental::verity_tree_blocks_for_file (Size fileSize)
 
Size incremental::verity_tree_size_for_file (Size fileSize)
 
static std::optional< int32_t > incremental::read_int32 (borrowed_fd fd, std::string *error)
 
static bool incremental::skip_int (borrowed_fd fd, std::string *error)
 
static bool incremental::append_int (borrowed_fd fd, std::vector< char > *bytes, std::string *error)
 
static bool incremental::append_bytes_with_size (borrowed_fd fd, std::vector< char > *bytes, int *bytes_left, std::string *error)
 
static bool incremental::skip_bytes_with_size (borrowed_fd fd, std::string *error)
 
std::optional< std::pair< std::vector< char >, int32_t > > incremental::read_id_sig_headers (borrowed_fd fd, std::string *error)
 
std::optional< std::pair< off64_t, ssize_t > > incremental::skip_id_sig_headers (borrowed_fd fd, std::string *error)
 
template<class T >
static T incremental::valueAt (borrowed_fd fd, off64_t offset)
 
template<class T >
static void incremental::unduplicate (std::vector< T > &v)
 
std::vector< int32_t > incremental::PriorityBlocksForFile (const std::string &, borrowed_fd, Size)
 

Macro Definition Documentation

◆ TRACE_TAG

#define TRACE_TAG   INCREMENTAL