| 86 | // |
| 87 | |
| 88 | FB_SIZE_T TempSpace::MemoryBlock::read(offset_t offset, void* buffer, FB_SIZE_T length) |
| 89 | { |
| 90 | if (offset + length > size) |
| 91 | { |
| 92 | length = size - offset; |
| 93 | } |
| 94 | memcpy(buffer, ptr + offset, length); |
| 95 | return length; |
| 96 | } |
| 97 | |
| 98 | FB_SIZE_T TempSpace::MemoryBlock::write(offset_t offset, const void* buffer, FB_SIZE_T length) |
| 99 | { |
no outgoing calls
no test coverage detected