#include "rtc_base/memory_stream.h"
#include <errno.h>
#include <string.h>
#include <algorithm>
#include "rtc_base/checks.h"
namespace rtc {
StreamState MemoryStream::GetState() const { … }
StreamResult MemoryStream::Read(rtc::ArrayView<uint8_t> buffer,
size_t& bytes_read,
int& error) { … }
StreamResult MemoryStream::Write(rtc::ArrayView<const uint8_t> buffer,
size_t& bytes_written,
int& error) { … }
void MemoryStream::Close() { … }
bool MemoryStream::SetPosition(size_t position) { … }
bool MemoryStream::GetPosition(size_t* position) const { … }
void MemoryStream::Rewind() { … }
bool MemoryStream::GetSize(size_t* size) const { … }
bool MemoryStream::ReserveSize(size_t size) { … }
MemoryStream::MemoryStream() { … }
MemoryStream::~MemoryStream() { … }
void MemoryStream::SetData(const void* data, size_t length) { … }
StreamResult MemoryStream::DoReserve(size_t size, int* error) { … }
}