Lines Matching refs:size_t
25 Status SequentialFileReader::Read(size_t n, Slice* result, char* scratch) { in Read()
29 size_t offset = offset_.fetch_add(n); in Read()
30 size_t alignment = file_->GetRequiredBufferAlignment(); in Read()
31 size_t aligned_offset = TruncateToPageBoundary(alignment, offset); in Read()
32 size_t offset_advance = offset - aligned_offset; in Read()
33 size_t size = Roundup(offset + n, alignment) - aligned_offset; in Read()
34 size_t r = 0; in Read()
58 offset_ += static_cast<size_t>(n); in Skip()
73 size_t readahead_size) in ReadaheadSequentialFile()
88 IOStatus Read(size_t n, const IOOptions& opts, Slice* result, char* scratch, in Read()
92 size_t cached_len = 0; in Read()
120 size_t remaining_len; in Read()
154 IOStatus PositionedRead(uint64_t offset, size_t n, const IOOptions& opts, in PositionedRead()
160 IOStatus InvalidateCache(size_t offset, size_t length) override { in InvalidateCache()
173 bool TryReadFromCache(size_t n, size_t* cached_len, char* scratch) { in TryReadFromCache()
181 buffer_.CurrentSize() - static_cast<size_t>(offset_in_buffer), n); in TryReadFromCache()
190 IOStatus ReadIntoBuffer(size_t n, const IOOptions& opts, in ReadIntoBuffer()
207 const size_t alignment_;
208 const size_t readahead_size_;
227 std::unique_ptr<FSSequentialFile>&& file, size_t readahead_size) { in NewReadaheadSequentialFile()