| 221 | } |
| 222 | |
| 223 | bool 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 | |
| 240 | bool getBlobSize( const UserBlob& b, |
no outgoing calls
no test coverage detected