#include "quiche/common/quiche_data_reader.h"
#include <cstring>
#include <string>
#include "absl/strings/numbers.h"
#include "absl/strings/str_cat.h"
#include "absl/strings/string_view.h"
#include "quiche/common/platform/api/quiche_bug_tracker.h"
#include "quiche/common/platform/api/quiche_logging.h"
#include "quiche/common/quiche_endian.h"
namespace quiche {
QuicheDataReader::QuicheDataReader(absl::string_view data)
: … { … }
QuicheDataReader::QuicheDataReader(const char* data, const size_t len)
: … { … }
QuicheDataReader::QuicheDataReader(const char* data, const size_t len,
quiche::Endianness endianness)
: … { … }
bool QuicheDataReader::ReadUInt8(uint8_t* result) { … }
bool QuicheDataReader::ReadUInt16(uint16_t* result) { … }
bool QuicheDataReader::ReadUInt24(uint32_t* result) { … }
bool QuicheDataReader::ReadUInt32(uint32_t* result) { … }
bool QuicheDataReader::ReadUInt64(uint64_t* result) { … }
bool QuicheDataReader::ReadBytesToUInt64(size_t num_bytes, uint64_t* result) { … }
bool QuicheDataReader::ReadStringPiece16(absl::string_view* result) { … }
bool QuicheDataReader::ReadStringPiece8(absl::string_view* result) { … }
bool QuicheDataReader::ReadStringPiece(absl::string_view* result, size_t size) { … }
bool QuicheDataReader::ReadTag(uint32_t* tag) { … }
bool QuicheDataReader::ReadDecimal64(size_t num_digits, uint64_t* result) { … }
QuicheVariableLengthIntegerLength QuicheDataReader::PeekVarInt62Length() { … }
bool QuicheDataReader::ReadVarInt62(uint64_t* result) { … }
bool QuicheDataReader::ReadStringPieceVarInt62(absl::string_view* result) { … }
bool QuicheDataReader::ReadStringVarInt62(std::string& result) { … }
absl::string_view QuicheDataReader::ReadRemainingPayload() { … }
absl::string_view QuicheDataReader::PeekRemainingPayload() const { … }
absl::string_view QuicheDataReader::FullPayload() const { … }
absl::string_view QuicheDataReader::PreviouslyReadPayload() const { … }
bool QuicheDataReader::ReadBytes(void* result, size_t size) { … }
bool QuicheDataReader::Seek(size_t size) { … }
bool QuicheDataReader::IsDoneReading() const { … }
size_t QuicheDataReader::BytesRemaining() const { … }
bool QuicheDataReader::TruncateRemaining(size_t truncation_length) { … }
bool QuicheDataReader::CanRead(size_t bytes) const { … }
void QuicheDataReader::OnFailure() { … }
uint8_t QuicheDataReader::PeekByte() const { … }
std::string QuicheDataReader::DebugString() const { … }
#undef ENDPOINT
}