| 96 | } |
| 97 | |
| 98 | FB_SIZE_T TempSpace::MemoryBlock::write(offset_t offset, const void* buffer, FB_SIZE_T length) |
| 99 | { |
| 100 | if (offset + length > size) |
| 101 | { |
| 102 | length = size - offset; |
| 103 | } |
| 104 | memcpy(ptr + offset, buffer, length); |
| 105 | return length; |
| 106 | } |
| 107 | |
| 108 | // |
| 109 | // On-disk block class |
no outgoing calls
no test coverage detected