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

Method create

src/common/classes/BlobWrapper.cpp:52–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50}
51
52bool BlobWrapper::create(IAttachment* db, ITransaction* trans, ISC_QUAD& blobid,
53 USHORT bpb_len, const UCHAR* bpb)
54{
55 if (m_direction != dir_none)
56 return false;
57
58 if (bpb_len > 0 && !bpb)
59 return false;
60
61 blobid.gds_quad_high = blobid.gds_quad_low = 0;
62 m_blob = db->createBlob(m_status, trans, &blobid, bpb_len, bpb);
63 if (m_status->isEmpty())
64 {
65 m_direction = dir_write;
66 return true;
67 }
68 return false;
69}
70
71bool BlobWrapper::close(bool force_internal_SV)
72{

Callers

nothing calls this directly

Calls 2

createBlobMethod · 0.45
isEmptyMethod · 0.45

Tested by

no test coverage detected