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

Function INF_request_info

src/jrd/inf.cpp:1024–1178  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1022
1023
1024ULONG INF_request_info(const Request* request,
1025 const ULONG item_length,
1026 const UCHAR* items,
1027 const ULONG output_length,
1028 UCHAR* info)
1029{
1030/**************************************
1031 *
1032 * I N F _ r e q u e s t _ i n f o
1033 *
1034 **************************************
1035 *
1036 * Functional description
1037 * Return information about requests.
1038 *
1039 **************************************/
1040 CHECK_INPUT("INF_request_info");
1041
1042 ULONG length = 0;
1043
1044 const UCHAR* const end_items = items + item_length;
1045 const UCHAR* const end = info + output_length;
1046 UCHAR* start_info = info;
1047 const bool infoLengthPresent = items[0] == isc_info_length;
1048
1049 if (infoLengthPresent)
1050 ++items;
1051
1052 HalfStaticArray<UCHAR, BUFFER_LARGE> buffer;
1053 UCHAR* buffer_ptr = buffer.getBuffer(BUFFER_TINY);
1054
1055 while (items < end_items && *items != isc_info_end && info < end)
1056 {
1057 UCHAR item = *items++;
1058
1059 switch (item)
1060 {
1061 case isc_info_end:
1062 break;
1063
1064 case isc_info_number_messages:
1065 //length = INF_convert(request->req_nmsgs, buffer_ptr);
1066 length = INF_convert(0, buffer_ptr); // never used
1067 break;
1068
1069 case isc_info_max_message:
1070 //length = INF_convert(request->req_mmsg, buffer_ptr);
1071 length = INF_convert(0, buffer_ptr); // never used
1072 break;
1073
1074 case isc_info_max_send:
1075 //length = INF_convert(request->req_msend, buffer_ptr);
1076 length = INF_convert(0, buffer_ptr); // never used
1077 break;
1078
1079 case isc_info_max_receive:
1080 //length = INF_convert(request->req_mreceive, buffer_ptr);
1081 length = INF_convert(0, buffer_ptr); // never used

Callers 2

get_request_infoFunction · 0.85
getInfoMethod · 0.85

Calls 4

INF_convertFunction · 0.85
INF_put_itemFunction · 0.85
getBufferMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected