MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / open

Method open

src/common/classes/BlobWrapper.cpp:34–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32using namespace Firebird;
33
34bool BlobWrapper::open(IAttachment* db, ITransaction* trans, ISC_QUAD& blobid,
35 USHORT bpb_len, const UCHAR* bpb)
36{
37 if (m_direction != dir_none)
38 return false;
39
40 if ((bpb_len > 0 && !bpb) || blobIsNull(blobid))
41 return false;
42
43 m_blob = db->openBlob(m_status, trans, &blobid, bpb_len, bpb);
44 if (m_status->isEmpty())
45 {
46 m_direction = dir_read;
47 return true;
48 }
49 return false;
50}
51
52bool BlobWrapper::create(IAttachment* db, ITransaction* trans, ISC_QUAD& blobid,
53 USHORT bpb_len, const UCHAR* bpb)

Callers

nothing calls this directly

Calls 2

openBlobMethod · 0.45
isEmptyMethod · 0.45

Tested by

no test coverage detected