8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-23 22:43:04 +01:00

Convenience.

This commit is contained in:
robocop 2007-04-03 08:19:19 +00:00
parent 9d0d307588
commit ef88fed09a

View File

@ -45,6 +45,7 @@ public:
bool putSegment(size_t len, size_t& real_len, const void* buffer);
bool putData(size_t len, size_t& real_len, const void* buffer);
bool isOpen() const;
ISC_STATUS getCode() const;
bool getInfo(size_t items_size, const UCHAR* blr_items, size_t info_size, UCHAR* blob_info) const;
static bool blobIsNull(const ISC_QUAD& blobid);
private:
@ -77,6 +78,12 @@ inline bool UserBlob::isOpen() const
return m_blob != 0 && m_direction != dir_none;
}
// Do not call it after close(true) unless you did open() or create() again!!!
inline ISC_STATUS UserBlob::getCode() const
{
return m_status[1];
}
inline bool UserBlob::blobIsNull(const ISC_QUAD& blobid)
{
return blobid.gds_quad_high == 0 && blobid.gds_quad_low == 0;