20 #ifndef MPD_ASYNC_INPUT_STREAM_HXX
21 #define MPD_ASYNC_INPUT_STREAM_HXX
37 enum class SeekState : uint8_t {
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;
171 void DeferredResume() noexcept;
172 void DeferredSeek() noexcept;
The meta information about a song file.
Automatic huge memory allocation management.
Range Write()
Prepares writing.
constexpr size_type GetSpace() const
Returns the number of elements that can be added to this buffer.
constexpr bool IsFull() const
constexpr bool IsEmpty() const
uint64_t offset_type
A type for absolute offsets in a file.
Invoke a method call in the EventLoop.