From ef88fed09a17986942115f380f2fece2ccb351b5 Mon Sep 17 00:00:00 2001 From: robocop Date: Tue, 3 Apr 2007 08:19:19 +0000 Subject: [PATCH] Convenience. --- src/common/classes/UserBlob.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/common/classes/UserBlob.h b/src/common/classes/UserBlob.h index 73820b030b..42d2a9529c 100644 --- a/src/common/classes/UserBlob.h +++ b/src/common/classes/UserBlob.h @@ -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;