mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-23 22:03:03 +01:00
Convenience.
This commit is contained in:
parent
9d0d307588
commit
ef88fed09a
@ -45,6 +45,7 @@ public:
|
|||||||
bool putSegment(size_t len, size_t& real_len, const void* buffer);
|
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 putData(size_t len, size_t& real_len, const void* buffer);
|
||||||
bool isOpen() const;
|
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;
|
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);
|
static bool blobIsNull(const ISC_QUAD& blobid);
|
||||||
private:
|
private:
|
||||||
@ -77,6 +78,12 @@ inline bool UserBlob::isOpen() const
|
|||||||
return m_blob != 0 && m_direction != dir_none;
|
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)
|
inline bool UserBlob::blobIsNull(const ISC_QUAD& blobid)
|
||||||
{
|
{
|
||||||
return blobid.gds_quad_high == 0 && blobid.gds_quad_low == 0;
|
return blobid.gds_quad_high == 0 && blobid.gds_quad_low == 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user