Lines Matching refs:handler

67       FileOffset at, std::size_t bytes, IoErrorHandler &handler) {  in ReadFrame()  argument
68 Flush(handler); in ReadFrame()
69 Reallocate(bytes, handler); in ReadFrame()
76 RUNTIME_CHECK(handler, at == fileOffset_ + frame_); in ReadFrame()
78 DiscardLeadingBytes(frame_, handler); in ReadFrame()
79 MakeDataContiguous(handler, bytes); in ReadFrame()
80 RUNTIME_CHECK(handler, at == fileOffset_ + frame_); in ReadFrame()
84 RUNTIME_CHECK(handler, next < size_); in ReadFrame()
88 fileOffset_ + length_, buffer_ + next, minBytes, maxBytes, handler)}; in ReadFrame()
90 RUNTIME_CHECK(handler, length_ <= size_); in ReadFrame()
95 void WriteFrame(FileOffset at, std::size_t bytes, IoErrorHandler &handler) { in WriteFrame() argument
96 Reallocate(bytes, handler); in WriteFrame()
99 Flush(handler); in WriteFrame()
103 Flush(handler, length_ - newFrame); in WriteFrame()
104 MakeDataContiguous(handler, bytes); in WriteFrame()
108 RUNTIME_CHECK(handler, at == fileOffset_ + frame_); in WriteFrame()
113 void Flush(IoErrorHandler &handler, std::int64_t keep = 0) {
119 Store().Write(fileOffset_, buffer_ + start_, chunk, handler)};
120 DiscardLeadingBytes(put, handler);
131 void TruncateFrame(std::int64_t at, IoErrorHandler &handler) { in TruncateFrame() argument
132 RUNTIME_CHECK(handler, !dirty_); in TruncateFrame()
183 void MakeDataContiguous(IoErrorHandler &handler, std::size_t bytes) { in MakeDataContiguous() argument
187 RUNTIME_CHECK(handler, length_ < size_); in MakeDataContiguous()
194 RUNTIME_CHECK(handler, length_ >= n); in MakeDataContiguous()