llvm/lldb/source/Utility/DataEncoder.cpp

//===-- DataEncoder.cpp ---------------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//

#include "lldb/Utility/DataEncoder.h"

#include "lldb/Utility/DataBufferHeap.h"
#include "lldb/Utility/Endian.h"

#include "llvm/Support/Endian.h"
#include "llvm/Support/ErrorHandling.h"

#include <cstddef>

#include <cstring>

usingnamespacelldb;
usingnamespacelldb_private;
usingnamespacellvm::support::endian;

DataEncoder::DataEncoder()
    :{}

DataEncoder::DataEncoder(const void *data, uint32_t length, ByteOrder endian,
                         uint8_t addr_size)
    :{}

DataEncoder::DataEncoder(ByteOrder endian, uint8_t addr_size)
    :{}

DataEncoder::~DataEncoder() = default;

llvm::ArrayRef<uint8_t> DataEncoder::GetData() const {}

size_t DataEncoder::GetByteSize() const {}

// Extract a single unsigned char from the binary data and update the offset
// pointed to by "offset_ptr".
//
// RETURNS the byte that was extracted, or zero on failure.
uint32_t DataEncoder::PutU8(uint32_t offset, uint8_t value) {}

uint32_t DataEncoder::PutU16(uint32_t offset, uint16_t value) {}

uint32_t DataEncoder::PutU32(uint32_t offset, uint32_t value) {}

uint32_t DataEncoder::PutU64(uint32_t offset, uint64_t value) {}

uint32_t DataEncoder::PutUnsigned(uint32_t offset, uint32_t byte_size,
                                  uint64_t value) {}

uint32_t DataEncoder::PutData(uint32_t offset, const void *src,
                              uint32_t src_len) {}

uint32_t DataEncoder::PutAddress(uint32_t offset, lldb::addr_t addr) {}

uint32_t DataEncoder::PutCString(uint32_t offset, const char *cstr) {}

void DataEncoder::AppendU8(uint8_t value) {}

void DataEncoder::AppendU16(uint16_t value) {}

void DataEncoder::AppendU32(uint32_t value) {}

void DataEncoder::AppendU64(uint64_t value) {}

void DataEncoder::AppendAddress(lldb::addr_t addr) {}

void DataEncoder::AppendData(llvm::StringRef data) {}

void DataEncoder::AppendData(llvm::ArrayRef<uint8_t> data) {}

void DataEncoder::AppendCString(llvm::StringRef data) {}