| 57 | } |
| 58 | |
| 59 | bool RecordBuffer::fetch(offset_t position, Record* to_record) |
| 60 | { |
| 61 | const ULONG length = record->getLength(); |
| 62 | fb_assert(to_record->getLength() == length); |
| 63 | |
| 64 | if (position >= count) |
| 65 | return false; |
| 66 | |
| 67 | fb_assert(space.hasData()); |
| 68 | space->read(position * length, to_record->getData(), length); |
| 69 | |
| 70 | return true; |
| 71 | } |
| 72 | |
| 73 | const Format* RecordBuffer::getFormat() const |
| 74 | { |