mysql_net_field_length

Syntax

#include <mysql.h>

ulong mysql_net_field_length(unsigned char **packet)

Parameter

Parameter
Description

packet

A pointer to a pointer to the current position in the packet buffer.

Description

Returns the length of a length encoded field and increments the pointer to the beginning of the field.

Return Value

Returns the length of the field.

This function is part of the low level protocol API and can be used to retrieve data if a callback function was provided for fetching results from prepared statements.

See Also

Last updated

Was this helpful?