Blender V5.3
blender::asset_system::DiskFileHashService Class Reference

#include <AS_disk_file_hash_service.hh>

Public Member Functions

 DiskFileHashService (StringRef storage_path)
 ~DiskFileHashService ()
std::string get_hash (StringRef filepath, StringRef hash_algorithm)
bool file_matches (StringRef filepath, StringRef hash_algorithm, StringRef hexhash, int64_t size_in_bytes)

Detailed Description

C++ wrapper around the DiskFileHashService class implemented in Python.

Run the following to see which hash algorithms are supported:

blender -b --python-expr "import hashlib; print(hashlib.algorithms_available)"

Definition at line 29 of file AS_disk_file_hash_service.hh.

Constructor & Destructor Documentation

◆ DiskFileHashService()

blender::asset_system::DiskFileHashService::DiskFileHashService ( StringRef storage_path)
explicit

Definition at line 30 of file disk_file_hash_service.cc.

◆ ~DiskFileHashService()

blender::asset_system::DiskFileHashService::~DiskFileHashService ( )

Definition at line 35 of file disk_file_hash_service.cc.

Member Function Documentation

◆ file_matches()

bool blender::asset_system::DiskFileHashService::file_matches ( StringRef filepath,
StringRef hash_algorithm,
StringRef hexhash,
int64_t size_in_bytes )

◆ get_hash()

std::string blender::asset_system::DiskFileHashService::get_hash ( StringRef filepath,
StringRef hash_algorithm )

The documentation for this class was generated from the following files: