MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / PARSE_msg_format

Function PARSE_msg_format

src/remote/parser.cpp:119–149  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

117
118
119rem_fmt* PARSE_msg_format(const UCHAR* blr, size_t blr_length)
120{
121/**************************************
122 *
123 * P A R S E _ m s g _ f o r m a t
124 *
125 **************************************
126 *
127 * Functional description
128 * Parse the message of a blr request and return its format.
129 *
130 **************************************/
131
132 if (blr_length < 4)
133 return NULL;
134 blr_length -= 4;
135
136 const SSHORT version = *blr++;
137 if (version != blr_version4 && version != blr_version5)
138 return NULL;
139
140 if (*blr++ != blr_begin)
141 return NULL;
142
143 if (*blr++ != blr_message)
144 return NULL;
145
146 blr++; // skip message number
147
148 return parse_format(blr, blr_length);
149}
150
151static rem_fmt* parse_format(const UCHAR*& blr, size_t& blr_length)
152{

Callers 6

xdr_sql_blrFunction · 0.85
createBatchMethod · 0.85
executeMethod · 0.85
openCursorMethod · 0.85
fetchMethod · 0.85
batch_createMethod · 0.85

Calls 1

parse_formatFunction · 0.85

Tested by

no test coverage detected