| 143 | } |
| 144 | |
| 145 | void BlobUtilPackage::openBlobFunction(ThrowStatusExceptionWrapper* status, |
| 146 | IExternalContext* context, const BlobMessage::Type* in, HandleMessage::Type* out) |
| 147 | { |
| 148 | const auto tdbb = JRD_get_thread_data(); |
| 149 | const auto transaction = tdbb->getTransaction(); |
| 150 | |
| 151 | const auto blobId = *(bid*) &in->blob; |
| 152 | const auto blob = blb::open(tdbb, transaction, &blobId); |
| 153 | |
| 154 | transaction->tra_blob_util_map.put(++transaction->tra_blob_util_next, blob); |
| 155 | |
| 156 | out->handleNull = FB_FALSE; |
| 157 | out->handle = transaction->tra_blob_util_next; |
| 158 | } |
| 159 | |
| 160 | void BlobUtilPackage::seekFunction(ThrowStatusExceptionWrapper* status, |
| 161 | IExternalContext* context, const SeekInput::Type* in, SeekOutput::Type* out) |
nothing calls this directly
no test coverage detected