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

Method seek

src/jrd/jrd.cpp:4209–4247  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4207
4208
4209int JBlob::seek(CheckStatusWrapper* user_status, int mode, int offset)
4210{
4211/**************************************
4212 *
4213 * g d s _ $ s e e k _ b l o b
4214 *
4215 **************************************
4216 *
4217 * Functional description
4218 * Seek a stream blob.
4219 *
4220 **************************************/
4221 int result = -1;
4222
4223 try
4224 {
4225 EngineContextHolder tdbb(user_status, this, FB_FUNCTION);
4226 check_database(tdbb);
4227
4228 try
4229 {
4230 result = getHandle()->BLB_lseek(mode, offset);
4231 }
4232 catch (const Exception& ex)
4233 {
4234 transliterateException(tdbb, ex, user_status, "JBlob::seek");
4235 return result;
4236 }
4237 }
4238 catch (const Exception& ex)
4239 {
4240 ex.stuffException(user_status);
4241 return result;
4242 }
4243
4244 successful_completion(user_status);
4245
4246 return result;
4247}
4248
4249
4250void JRequest::send(CheckStatusWrapper* user_status, int level, unsigned int msg_type,

Callers 1

read_exampleFunction · 0.45

Calls 5

check_databaseFunction · 0.85
transliterateExceptionFunction · 0.85
successful_completionFunction · 0.85
BLB_lseekMethod · 0.80
stuffExceptionMethod · 0.45

Tested by

no test coverage detected