ISC_STATUS API_ROUTINE gds__blob_info(ISC_STATUS* status_vector, FB_API_HANDLE* blob_handle, SSHORT msg_length, const SCHAR* msg, SSHORT buffer_length, SCHAR* buffer) { return isc_blob_info(status_vector, blob_handle, msg_length, msg, buffer_length, buffer); }
bool UserBlob::getInfo(size_t items_size, const UCHAR* items, size_t info_size, UCHAR* blob_info) const { if (!m_blob || m_direction != dir_read) return false; // We have to cater for the API limitations. SSHORT in_len = items_size > MAX_SSHORT ? MAX_SSHORT : static_cast<SSHORT>(items_size); SSHORT out_len = info_size > MAX_SSHORT ? MAX_SSHORT : static_cast<SSHORT>(info_size); // That the API declares the second param as non const is a bug. FB_API_HANDLE blob = m_blob; return !isc_blob_info(m_status, &blob, in_len, reinterpret_cast<const char*>(items), out_len, reinterpret_cast<char*>(blob_info)); }