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

Method getInfo

src/common/classes/UserBlob.cpp:223–237  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

221}
222
223bool UserBlob::getInfo(FB_SIZE_T items_size, const UCHAR* items,
224 FB_SIZE_T info_size, UCHAR* blob_info) const
225{
226 if (!m_blob || m_direction != dir_read)
227 return false;
228
229 // We have to cater for the API limitations.
230 SSHORT in_len = items_size > MAX_SSHORT ? MAX_SSHORT : static_cast<SSHORT>(items_size);
231 SSHORT out_len = info_size > MAX_SSHORT ? MAX_SSHORT : static_cast<SSHORT>(info_size);
232 // That the API declares the second param as non const is a bug.
233 FB_API_HANDLE blob = m_blob;
234 return !isc_blob_info(m_status, &blob,
235 in_len, reinterpret_cast<const char*>(items),
236 out_len, reinterpret_cast<char*>(blob_info));
237}
238
239
240bool getBlobSize( const UserBlob& b,

Callers 2

getAndParseMethod · 0.45
getBlobSizeFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected