128 using BufferedReader::Parameters::Parameters;
182 parameters.
MaxWait().value_or(
std::chrono::milliseconds{0}),
198 std::chrono::milliseconds max_wait,
bool probe);
232 bool OriginHasSize() const noexcept final;
Private state of StormByte::Buffer::IO::BufferedLocationReader.
Location-reader knobs.
Definition buffered_location_reader.hxx:126
File-like BufferedReader.
Definition buffered_location_reader.hxx:120
BufferedLocationReader(StormByte::String::String path, enum Location location, StormByte::ByteSize read_ahead, StormByte::ByteSize max_memory, std::chrono::milliseconds max_wait, bool probe)
Store the locator and forward the cache knobs.
bool OriginCanSeek() const noexcept final
A location can seek.
virtual bool OriginDeviceUsable(const StormByte::Shared< StormByte::System::Device > &device) const noexcept
Whether Setup may read windows from device.
BufferedLocationReader(const BufferedLocationReader &)=delete
Copy constructor is deleted.
virtual ~BufferedLocationReader() noexcept override
Destructor.
BufferedLocationReader(BufferedLocationReader &&other) noexcept
Move constructor.
virtual StormByte::Shared< StormByte::System::Device > OriginDevice() const =0
Leaf measurement.
Reader knobs.
Definition buffered_reader.hxx:223
Coordinated binary read source with optional prefetch and cache.
Definition buffered_reader.hxx:211
Cache / dirty-page budget knob.
Definition parameters.hxx:102
Origin wait cap.
Definition parameters.hxx:127
Prefetch length knob.
Definition parameters.hxx:77
Location
Where the bytes of a file-like source or sink live.
Definition typedefs.hxx:140
Root namespace of the StormByte C++ suite.
#define STORMBYTE_BUFFER_PUBLIC
Definition visibility.h:54