MySQL 8.4.2
Source Code Documentation
|
Various utilities for Innobase. More...
Functions | |
void | ut_print_buf (FILE *file, const void *buf, ulint len) |
NOTE: The functions in this file should only use functions from other files in library. More... | |
void | ut_print_buf_hex (std::ostream &o, const void *buf, ulint len) |
Prints the contents of a memory buffer in hex. More... | |
void | ut_print_buf (std::ostream &o, const void *buf, ulint len) |
Prints the contents of a memory buffer in hex and ascii. More... | |
void | ut_print_timestamp (FILE *file) |
Prints a timestamp to a file. More... | |
void | ut_sprintf_timestamp (char *buf) |
Sprintfs a timestamp to a buffer, 13..14 chars plus terminating NUL. More... | |
ulint | ut_strlcpy_rev (char *dst, const char *src, ulint size) |
Like ut_strlcpy, but if src doesn't fit in dst completely, copies the last (size - 1) bytes of src, not the first. More... | |
Various utilities for Innobase.
Created 5/11/1994 Heikki Tuuri
void ut_print_buf | ( | FILE * | file, |
const void * | buf, | ||
ulint | len | ||
) |
NOTE: The functions in this file should only use functions from other files in library.
The code in this file is used to make a library for external tools. Prints the contents of a memory buffer in hex and ascii.
file | in: file where to print |
buf | in: memory buffer |
len | in: length of the buffer |
void ut_print_buf | ( | std::ostream & | o, |
const void * | buf, | ||
ulint | len | ||
) |
Prints the contents of a memory buffer in hex and ascii.
[in,out] | o | Output stream |
[in] | buf | Memory buffer |
[in] | len | Length of the buffer |
void ut_print_buf_hex | ( | std::ostream & | o, |
const void * | buf, | ||
ulint | len | ||
) |
Prints the contents of a memory buffer in hex.
[in,out] | o | Output stream |
[in] | buf | Memory buffer |
[in] | len | Length of the buffer |
void ut_print_timestamp | ( | FILE * | file | ) |
Prints a timestamp to a file.
file | in: file where to print |
void ut_sprintf_timestamp | ( | char * | buf | ) |
Sprintfs a timestamp to a buffer, 13..14 chars plus terminating NUL.
in: buffer where to sprintf
buf | in: buffer where to sprintf |