Lines Matching refs:handler

71       FileOffset at, std::size_t bytes, IoErrorHandler &handler) {  in ReadFrame()  argument
72 Flush(handler); in ReadFrame()
73 Reallocate(bytes, handler); in ReadFrame()
80 RUNTIME_CHECK(handler, at == fileOffset_ + frame_); in ReadFrame()
82 DiscardLeadingBytes(frame_, handler); in ReadFrame()
83 MakeDataContiguous(handler, bytes); in ReadFrame()
84 RUNTIME_CHECK(handler, at == fileOffset_ + frame_); in ReadFrame()
88 RUNTIME_CHECK(handler, next < size_); in ReadFrame()
92 fileOffset_ + length_, buffer_ + next, minBytes, maxBytes, handler)}; in ReadFrame()
94 RUNTIME_CHECK(handler, length_ <= size_); in ReadFrame()
100 FileOffset at, std::size_t bytes, IoErrorHandler &handler) { in WriteFrame() argument
101 Reallocate(bytes, handler); in WriteFrame()
104 Flush(handler); in WriteFrame()
108 Flush(handler, length_ - newFrame); in WriteFrame()
109 MakeDataContiguous(handler, bytes); in WriteFrame()
113 RUNTIME_CHECK(handler, at == fileOffset_ + frame_); in WriteFrame()
118 RT_API_ATTRS void Flush(IoErrorHandler &handler, std::int64_t keep = 0) {
124 Store().Write(fileOffset_, buffer_ + start_, chunk, handler)};
125 DiscardLeadingBytes(put, handler);
136 RT_API_ATTRS void TruncateFrame(std::int64_t at, IoErrorHandler &handler) { in TruncateFrame() argument
137 RUNTIME_CHECK(handler, !dirty_); in TruncateFrame()
196 IoErrorHandler &handler, std::size_t bytes) { in MakeDataContiguous() argument
200 RUNTIME_CHECK(handler, length_ < size_); in MakeDataContiguous()
207 RUNTIME_CHECK(handler, length_ >= n); in MakeDataContiguous()