Barretenberg
The ZK-SNARK library at the core of Aztec
|
#include <cstdint>
#include <iostream>
#include <vector>
Go to the source code of this file.
Functions | |
void | write_bytes_to_stdout (const std::vector< uint8_t > &data) |
Writes raw bytes of the vector to stdout. | |
void | writeUint64AsRawBytesToStdout (uint64_t value) |
Writes a uint64_t to stdout in little endian format. | |
|
inline |
Writes raw bytes of the vector to stdout.
Note: std::cout << byte is not being used here because that always prints the numerical value. << can also apply formatting and seems is not the appropriate way to write raw bytes to stdout.
Example:
uint8_t byte = 'A' std::cout << byte; // prints 65 std::cout.put(byte); // prints 'A'
data | The raw bytes that we want to write to stdout |