| 912 | } |
| 913 | |
| 914 | void DsqlBatch::DataCache::done() |
| 915 | { |
| 916 | if (m_cache.getCount() && m_used) |
| 917 | { |
| 918 | fb_assert(m_space); |
| 919 | |
| 920 | const FB_UINT64 writtenBytes = m_space->write(m_used, m_cache.begin(), m_cache.getCount()); |
| 921 | fb_assert(writtenBytes == m_cache.getCount()); |
| 922 | m_used += m_cache.getCount(); |
| 923 | m_cache.clear(); |
| 924 | } |
| 925 | } |
| 926 | |
| 927 | ULONG DsqlBatch::DataCache::get(UCHAR** buffer) |
| 928 | { |