| 4207 | |
| 4208 | |
| 4209 | int 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 | |
| 4250 | void JRequest::send(CheckStatusWrapper* user_status, int level, unsigned int msg_type, |
no test coverage detected