Put a segment in a blob opened for writing (creation).
| 3161 | |
| 3162 | // Put a segment in a blob opened for writing (creation). |
| 3163 | ISC_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. |
nothing calls this directly
no test coverage detected