#include "quiche/http2/adapter/chunked_buffer.h"
#include <algorithm>
#include <memory>
#include <utility>
#include <vector>
namespace http2 {
namespace adapter {
namespace {
constexpr size_t kKilobyte = …;
size_t RoundUpToNearestKilobyte(size_t n) { … }
}
void ChunkedBuffer::Append(absl::string_view data) { … }
void ChunkedBuffer::Append(std::unique_ptr<char[]> data, size_t size) { … }
absl::string_view ChunkedBuffer::GetPrefix() const { … }
std::vector<absl::string_view> ChunkedBuffer::Read() const { … }
void ChunkedBuffer::RemovePrefix(size_t n) { … }
bool ChunkedBuffer::Empty() const { … }
void ChunkedBuffer::Chunk::RemovePrefix(size_t n) { … }
void ChunkedBuffer::Chunk::AppendSuffix(absl::string_view to_append) { … }
size_t ChunkedBuffer::TailBytesFree() const { … }
void ChunkedBuffer::EnsureTailBytesFree(size_t n) { … }
void ChunkedBuffer::TrimFirstChunk() { … }
}
}