tranger2_print_md1_record()

tranger2_print_md1_record()#

Prints metadata information of a record, including row ID, user flag, system flag, timestamps, and key, into a buffer.

Prototype

void tranger2_print_md1_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 where the formatted metadata string will be stored.

bfsize

int

Size of the buffer to ensure safe writing.

key

const char *

Key associated with the record.

md_record_ex

const md2_record_ex_t *

Pointer to the record metadata structure containing the information to be printed.

print_local_time

BOOL

Flag indicating whether to print timestamps in local time (if TRUE) or UTC (if FALSE).


Return Value

This function does not return a value.

Notes

The function formats and writes metadata details into the provided buffer, ensuring that the output does not exceed bfsize bytes.

Prototype

// Not applicable in JS

Prototype

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