20 #ifndef MPD_ASYNC_INPUT_STREAM_HXX 21 #define MPD_ASYNC_INPUT_STREAM_HXX 37 enum class SeekState : uint8_t {
38 NONE, SCHEDULED, PENDING
47 const size_t resume_at;
85 bool IsEOF() noexcept final;
89 size_t Read(
void *ptr,
size_t read_size) final;
101 void Pause() noexcept;
133 return buffer.
Write();
142 void AppendToBuffer(
const void *data,
size_t append_size) noexcept;
158 return seek_state == SeekState::PENDING;
171 void DeferredResume() noexcept;
172 void DeferredSeek() noexcept;
The meta information about a song file.
constexpr bool IsFull() const
Automatic huge memory allocation management.
constexpr size_type GetSpace() const
Returns the number of elements that can be added to this buffer.
Range Write()
Prepares writing.
constexpr bool IsEmpty() const
uint64_t offset_type
A type for absolute offsets in a file.
Invoke a method call in the EventLoop.