You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
477 B
C++
22 lines
477 B
C++
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
// Copyright The Music Player Daemon Project
|
|
|
|
#ifndef MPD_PAGE_HXX
|
|
#define MPD_PAGE_HXX
|
|
|
|
#include "util/AllocatedArray.hxx"
|
|
|
|
#include <cstddef>
|
|
#include <memory>
|
|
|
|
/**
|
|
* A dynamically allocated buffer. It is used to pass
|
|
* reference-counted buffers around (using std::shared_ptr), when
|
|
* several instances hold references to one buffer.
|
|
*/
|
|
using Page = AllocatedArray<std::byte>;
|
|
|
|
typedef std::shared_ptr<Page> PagePtr;
|
|
|
|
#endif
|