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

Function findDynamicStrings

src/common/DynamicStrings.cpp:116–142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

114}
115
116char* findDynamicStrings(unsigned length, ISC_STATUS* ptr) throw()
117{
118 while (length--)
119 {
120 const ISC_STATUS type = *ptr++;
121 if (type == isc_arg_end)
122 break;
123
124 switch (type)
125 {
126 case isc_arg_cstring:
127 fb_assert(false); // CVC: according to the new logic, this case cannot happen
128 ptr++;
129
130 case isc_arg_string:
131 case isc_arg_interpreted:
132 case isc_arg_sql_state:
133 return reinterpret_cast<char*>(*ptr);
134
135 default:
136 ptr++;
137 break;
138 }
139 }
140
141 return NULL;
142}
143
144
145} // namespace Firebird

Callers 3

~status_exceptionMethod · 0.85
~DynamicVectorMethod · 0.85
prepareForNewValueMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected