MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / API_ROUTINE isc_put_segment

Function API_ROUTINE isc_put_segment

src/yvalve/why.cpp:3163–3180  ·  view source on GitHub ↗

Put a segment in a blob opened for writing (creation).

Source from the content-addressed store, hash-verified

3161
3162// Put a segment in a blob opened for writing (creation).
3163ISC_STATUS API_ROUTINE isc_put_segment(ISC_STATUS* userStatus, isc_blob_handle* blobHandle,
3164 USHORT bufferLength, const SCHAR* buffer)
3165{
3166 StatusVector status(userStatus);
3167 CheckStatusWrapper statusWrapper(&status);
3168
3169 try
3170 {
3171 RefPtr<YBlob> blob(translateHandle(blobs, blobHandle));
3172 blob->putSegment(&statusWrapper, bufferLength, reinterpret_cast<const UCHAR*>(buffer));
3173 }
3174 catch (const Exception& e)
3175 {
3176 e.stuffException(&statusWrapper);
3177 }
3178
3179 return status[1];
3180}
3181
3182
3183// Put a slice in an array.

Callers

nothing calls this directly

Calls 3

translateHandleFunction · 0.85
putSegmentMethod · 0.45
stuffExceptionMethod · 0.45

Tested by

no test coverage detected