#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "components/webrtc_logging/common/partial_circular_buffer.h"
#include <algorithm>
#include <cstring>
#include "base/check_op.h"
namespace webrtc_logging {
PartialCircularBuffer::PartialCircularBuffer(void* buffer, uint32_t buffer_size)
: … { … }
PartialCircularBuffer::PartialCircularBuffer(void* buffer,
uint32_t buffer_size,
uint32_t wrap_position,
bool append)
: … { … }
uint32_t PartialCircularBuffer::Read(void* buffer, uint32_t buffer_size) { … }
void PartialCircularBuffer::Write(const void* buffer, uint32_t buffer_size) { … }
void PartialCircularBuffer::DoWrite(const uint8_t* input, uint32_t input_size) { … }
}