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

Function INF_convert

src/jrd/inf.cpp:246–269  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

244
245
246USHORT INF_convert(SINT64 number, UCHAR* buffer)
247{
248/**************************************
249 *
250 * I N F _ c o n v e r t
251 *
252 **************************************
253 *
254 * Functional description
255 * Convert a number to VAX form -- least significant bytes first.
256 * Return the length.
257 *
258 **************************************/
259 if (number >= MIN_SLONG && number <= MAX_SLONG)
260 {
261 put_vax_long(buffer, (SLONG) number);
262 return sizeof(SLONG);
263 }
264 else
265 {
266 put_vax_int64(buffer, number);
267 return sizeof(SINT64);
268 }
269}
270
271
272void INF_database_info(thread_db* tdbb,

Callers 8

sql_infoFunction · 0.85
getCountsFunction · 0.85
INF_blob_infoFunction · 0.85
INF_database_infoFunction · 0.85
INF_request_infoFunction · 0.85
INF_transaction_infoFunction · 0.85
query2Method · 0.85
queryMethod · 0.85

Calls 2

put_vax_longFunction · 0.85
put_vax_int64Function · 0.85

Tested by

no test coverage detected