tranger2_print_md0_record()

tranger2_print_md0_record()#

Prints metadata of a record, including row ID, time, message time, and key, into a buffer.

Prototype

void tranger2_print_md0_record(
    char                 *bf,
    int                   bfsize,
    const char           *key,
    const md2_record_ex_t *md_record_ex,
    BOOL                  print_local_time
);

Parameters

Key

Type

Description

bf

char *

Buffer to store the formatted metadata string.

bfsize

int

Size of the buffer to prevent overflow.

key

const char *

Key associated with the record.

md_record_ex

const md2_record_ex_t *

Pointer to the record metadata structure.

print_local_time

BOOL

Flag indicating whether to print time in local format.


Return Value

This function does not return a value.

Notes

The function formats the metadata into the provided buffer, ensuring it does not exceed bfsize. It prints row ID, time, message time, and key.

Prototype

// Not applicable in JS

Prototype

# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples