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

Method sendBlobPacket

src/remote/client/interface.cpp:3003–3022  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3001
3002
3003void Batch::sendBlobPacket(unsigned size, const UCHAR* ptr, bool flash)
3004{
3005 Rsr* statement = stmt->getStatement();
3006 Rdb* rdb = statement->rsr_rdb;
3007 rem_port* port = rdb->rdb_port;
3008
3009 setServerInfo();
3010 fb_assert(!(size % blobAlign));
3011
3012 PACKET* packet = &rdb->rdb_packet;
3013 packet->p_operation = op_batch_blob_stream;
3014 P_BATCH_BLOB* batch = &packet->p_batch_blob;
3015 batch->p_batch_statement = statement->rsr_id;
3016 batch->p_batch_blob_data.cstr_address = const_cast<UCHAR*>(ptr);
3017 batch->p_batch_blob_data.cstr_length = size;
3018
3019 sendDeferredPacket(nullptr, port, packet, flash);
3020
3021 blobCount += size;
3022}
3023
3024
3025void Batch::sendDeferredPacket(IStatus* status, rem_port* port, PACKET* packet, bool flash)

Callers

nothing calls this directly

Calls 1

getStatementMethod · 0.45

Tested by

no test coverage detected