97 #include "../base/bytes.h"
175 bool operator>>(Bytes& bytes)
const noexcept;
183 [[nodiscard]]
static bool check_valid(
const Bytes& bytes) noexcept;
197 [[nodiscard]]
bool is_valid()
const noexcept;
205 bool shallow_copy(
const RawData& target) noexcept;
213 bool deep_copy(
const RawData& target) noexcept;
221 bool move_copy(
RawData& target) noexcept;
229 bool create(
size_t size) noexcept;
234 void clear() noexcept;
243 bool shallow_copy(uint8_t* data,
size_t size) noexcept;
252 bool deep_copy(uint8_t* data,
size_t size) noexcept;
261 bool fill_data(uint8_t* data,
size_t size) noexcept;
268 [[nodiscard]] uint16_t& get_reserved() noexcept;
275 [[nodiscard]]
const uint8_t* data()
const noexcept;
282 [[nodiscard]]
size_t size()
const noexcept;
289 [[nodiscard]]
bool is_owner()
const noexcept;
293 static constexpr
bool kZerocopyTypes{
true};
296 uint8_t* data_{
nullptr};
298 bool is_owner_{
false};
299 uint16_t reserved_buf_{0};
301 static constexpr uint32_t kMagicNumberBegin{0x98B7F11A};
302 static constexpr uint32_t kMagicNumberEnd{0x98B7F11F};
constexpr bool is_valid() noexcept
Definition: name_detector.h:382
size_t get_serialized_size(const T &src) noexcept
Returns a serialised-size hint for src with explicit codec tag.
Definition: serializer-inl.h:298
VLINK_EXPORT std::ostream & operator<<(std::ostream &ostream, const BasePtr &status) noexcept
Writes the human-readable description of status to ostream.
struct VLINK_EXPORT_AND_ALIGNED(8) AudioFrame final
Definition: audio_frame.h:140
64-byte POD container that wraps an opaque byte payload with a Header prefix.