LLDB  mainline
Functions
DataExtractor.cpp File Reference
#include "lldb/Utility/DataExtractor.h"
#include "lldb/lldb-defines.h"
#include "lldb/lldb-enumerations.h"
#include "lldb/lldb-forward.h"
#include "lldb/lldb-types.h"
#include "lldb/Utility/DataBuffer.h"
#include "lldb/Utility/DataBufferHeap.h"
#include "lldb/Utility/Endian.h"
#include "lldb/Utility/LLDBAssert.h"
#include "lldb/Utility/Log.h"
#include "lldb/Utility/Stream.h"
#include "lldb/Utility/StreamString.h"
#include "lldb/Utility/UUID.h"
#include "llvm/ADT/ArrayRef.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/Support/MD5.h"
#include "llvm/Support/MathExtras.h"
#include <algorithm>
#include <array>
#include <cassert>
#include <cstdint>
#include <string>
#include <ctype.h>
#include <inttypes.h>
#include <string.h>
Include dependency graph for DataExtractor.cpp:

Go to the source code of this file.

Functions

static uint16_t ReadInt16 (const unsigned char *ptr, offset_t offset)
 
static uint32_t ReadInt32 (const unsigned char *ptr, offset_t offset=0)
 
static uint64_t ReadInt64 (const unsigned char *ptr, offset_t offset=0)
 
static uint16_t ReadInt16 (const void *ptr)
 
static uint16_t ReadSwapInt16 (const unsigned char *ptr, offset_t offset)
 
static uint32_t ReadSwapInt32 (const unsigned char *ptr, offset_t offset)
 
static uint64_t ReadSwapInt64 (const unsigned char *ptr, offset_t offset)
 
static uint16_t ReadSwapInt16 (const void *ptr)
 
static uint32_t ReadSwapInt32 (const void *ptr)
 
static uint64_t ReadSwapInt64 (const void *ptr)
 
static uint64_t ReadMaxInt64 (const uint8_t *data, size_t byte_size, ByteOrder byte_order)
 

Function Documentation

◆ ReadInt16() [1/2]

static uint16_t ReadInt16 ( const unsigned char *  ptr,
offset_t  offset 
)
inlinestatic

◆ ReadInt16() [2/2]

static uint16_t ReadInt16 ( const void *  ptr)
inlinestatic

Definition at line 63 of file DataExtractor.cpp.

◆ ReadInt32()

static uint32_t ReadInt32 ( const unsigned char *  ptr,
offset_t  offset = 0 
)
inlinestatic

Definition at line 49 of file DataExtractor.cpp.

Referenced by lldb_private::DataExtractor::GetU32_unchecked().

◆ ReadInt64()

static uint64_t ReadInt64 ( const unsigned char *  ptr,
offset_t  offset = 0 
)
inlinestatic

Definition at line 56 of file DataExtractor.cpp.

Referenced by lldb_private::DataExtractor::GetU64_unchecked().

◆ ReadMaxInt64()

static uint64_t ReadMaxInt64 ( const uint8_t *  data,
size_t  byte_size,
ByteOrder  byte_order 
)
inlinestatic

◆ ReadSwapInt16() [1/2]

static uint16_t ReadSwapInt16 ( const unsigned char *  ptr,
offset_t  offset 
)
inlinestatic

◆ ReadSwapInt16() [2/2]

static uint16_t ReadSwapInt16 ( const void *  ptr)
inlinestatic

Definition at line 90 of file DataExtractor.cpp.

◆ ReadSwapInt32() [1/2]

static uint32_t ReadSwapInt32 ( const unsigned char *  ptr,
offset_t  offset 
)
inlinestatic

◆ ReadSwapInt32() [2/2]

static uint32_t ReadSwapInt32 ( const void *  ptr)
inlinestatic

Definition at line 96 of file DataExtractor.cpp.

◆ ReadSwapInt64() [1/2]

static uint64_t ReadSwapInt64 ( const unsigned char *  ptr,
offset_t  offset 
)
inlinestatic

◆ ReadSwapInt64() [2/2]

static uint64_t ReadSwapInt64 ( const void *  ptr)
inlinestatic

Definition at line 102 of file DataExtractor.cpp.