MySQL 8.4.0
Source Code Documentation
xa_aux.h File Reference
#include <stdio.h>
#include "dig_vec.h"
#include "my_inttypes.h"

Go to the source code of this file.

Functions

char * serialize_xid (char *buf, long fmt, long gln, long bln, const char *dat)
 Function serializes XID which is characterized by by four last arguments of the function. More...
 

Function Documentation

◆ serialize_xid()

char * serialize_xid ( char *  buf,
long  fmt,
long  gln,
long  bln,
const char *  dat 
)
inline

Function serializes XID which is characterized by by four last arguments of the function.

Serialized XID is presented in valid hex format and is returned to the caller in a buffer pointed by the first argument. The buffer size provived by the caller must be not less than 8 + 2 * XIDDATASIZE + 4 * sizeof(XID::formatID) + 1, see XID::serialize_xid() that is a caller and plugin.h for XID declaration.

Parameters
bufpointer to a buffer allocated for storing serialized data
fmtformatID value
glngtrid_length value
blnbqual_length value
datdata value
Returns
the value of the buffer pointer