#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "third_party/blink/renderer/platform/wtf/shared_buffer.h"
#include <cstddef>
#include <memory>
#include "base/compiler_specific.h"
#include "base/numerics/safe_conversions.h"
#include "third_party/blink/renderer/platform/wtf/allocator/allocator.h"
#include "third_party/blink/renderer/platform/wtf/text/unicode.h"
#include "third_party/blink/renderer/platform/wtf/text/utf8.h"
#include "third_party/blink/renderer/platform/wtf/wtf_size_t.h"
namespace WTF {
SegmentedBuffer::Iterator& SegmentedBuffer::Iterator::operator++() { … }
SegmentedBuffer::Iterator::Iterator(const SegmentedBuffer* buffer)
: … { … }
SegmentedBuffer::Iterator::Iterator(Vector<Segment>::const_iterator segment_it,
size_t offset,
const SegmentedBuffer* buffer)
: … { … }
void SegmentedBuffer::Iterator::Init(size_t offset) { … }
void SegmentedBuffer::Append(base::span<const char> data) { … }
void SegmentedBuffer::Append(Vector<char>&& vector) { … }
void SegmentedBuffer::Clear() { … }
SegmentedBuffer::Iterator SegmentedBuffer::begin() const { … }
SegmentedBuffer::Iterator SegmentedBuffer::end() const { … }
SegmentedBuffer::Iterator SegmentedBuffer::GetIteratorAtInternal(
size_t position) const { … }
bool SegmentedBuffer::GetBytesInternal(void* dest, size_t dest_size) const { … }
void SegmentedBuffer::GetMemoryDumpNameAndSize(String& dump_name,
size_t& dump_size) const { … }
SegmentedBuffer::DeprecatedFlatData::DeprecatedFlatData(
const SegmentedBuffer* buffer)
: … { … }
Vector<Vector<char>> SegmentedBuffer::TakeData() && { … }
SharedBuffer::SharedBuffer() = default;
SharedBuffer::SharedBuffer(base::span<const char> data) { … }
SharedBuffer::SharedBuffer(base::span<const unsigned char> data)
: … { … }
SharedBuffer::SharedBuffer(SegmentedBuffer&& data)
: … { … }
SharedBuffer::~SharedBuffer() = default;
scoped_refptr<SharedBuffer> SharedBuffer::Create(Vector<char>&& vector) { … }
}