SVCS - English Documentation
Loading...
Searching...
No Matches
Utils.cxx File Reference

Implementation of general utility functions for file I/O and hash format conversion. More...

#include "../include/Utils.hxx"
#include <fstream>
#include <sstream>

Namespaces

namespace  svcs::core
 Core VCS data structures and object model.

Functions

std::string svcs::core::read_file_to_string (const fs::path &full_path)
 Reads the entire content of a file into a single std::string.
std::string svcs::core::binary_to_hex_string (const unsigned char *binary_data, size_t length)
 Converts a binary buffer (e.g., a raw SHA-1 hash) into its hexadecimal string representation.
std::string svcs::core::hex_to_binary_string (const std::string &hex_string)
 Converts a hexadecimal string (e.g., 40 chars) into its raw binary byte representation (e.g., 20 bytes).

Detailed Description

Implementation of general utility functions for file I/O and hash format conversion.