Returns the number of bytes currently pinned in memory by the stream. If ignore_current is true, the write_page_ memory is not included.
| 398 | /// Returns the number of bytes currently pinned in memory by the stream. |
| 399 | /// If ignore_current is true, the write_page_ memory is not included. |
| 400 | int64_t BytesPinned(bool ignore_current) const { |
| 401 | if (ignore_current && write_page_ != nullptr && write_page_->is_pinned()) { |
| 402 | return bytes_pinned_ - write_page_->len(); |
| 403 | } |
| 404 | return bytes_pinned_; |
| 405 | } |
| 406 | |
| 407 | /// Returns the number of bytes currently unpinned by the stream. |
| 408 | int64_t bytes_unpinned() const { |