#include "net/base/datagram_buffer.h"
#include "base/memory/ptr_util.h"
#include <cstring>
namespace net {
DatagramBufferPool::DatagramBufferPool(size_t max_buffer_size)
: … { … }
DatagramBufferPool::~DatagramBufferPool() = default;
void DatagramBufferPool::Enqueue(const char* buffer,
size_t buf_len,
DatagramBuffers* buffers) { … }
void DatagramBufferPool::Dequeue(DatagramBuffers* buffers) { … }
DatagramBuffer::DatagramBuffer(size_t max_buffer_size)
: … { … }
DatagramBuffer::~DatagramBuffer() = default;
void DatagramBuffer::Set(const char* buffer, size_t buf_len) { … }
char* DatagramBuffer::data() const { … }
size_t DatagramBuffer::length() const { … }
}