HomeManualTopicsTypesSymbols

std::hexdump_to

writes a hexdump of the given string to the given file descriptor

Parameters

fd
the file descriptor to write to
str
the string to dump

Results

None

Description

Attention: This function must be called with I/O-access rights!

The function displays the string's hexadecimal representation.

Example

$data "Hello, world!" hexdump_to! STDOUT_FILENO data

Output

00000000: 48 65 6c 6c 6f 2c 20 77 6f 72 6c 64 21

Topic

Debug

See also

std::hexdump writes a hexdump of the given string to stdout
std::ehexdump writes a hexdump of the given string to stderr
debug::hexdump writes a hexdump of the given string to stderr
std::dump_to writes a string representation of some objects to the given file descriptor