|  | MySQL 9.5.0
    Source Code Documentation | 
Various utilities. More...
#include "univ.i"Go to the source code of this file.
| Classes | |
| struct | PrintBuffer | 
| 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_timestamp (FILE *file) UNIV_COLD | 
| 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... | |
| 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... | |
| 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... | |
| std::ostream & | operator<< (std::ostream &out, const PrintBuffer &obj) | 
Various utilities.
Created 1/20/1994 Heikki Tuuri
| 
 | inline | 
| 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. in: length of the buffer
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 | 
Like ut_strlcpy, but if src doesn't fit in dst completely, copies the last (size - 1) bytes of src, not the first.
| dst | in: destination buffer | 
| src | in: source buffer | 
| size | in: size of destination buffer |