LLVM 20.0.0git
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
llvm::objcopy::elf::SRecord Struct Reference

#include "ObjCopy/ELF/ELFObject.h"

Public Types

enum  Type : uint8_t {
  S0 = 0 , S1 = 1 , S2 = 2 , S3 = 3 ,
  S4 = 4 , S5 = 5 , S6 = 6 , S7 = 7 ,
  S8 = 8 , S9 = 9
}
 

Public Member Functions

SRecLineData toString () const
 
uint8_t getCount () const
 
uint8_t getAddressSize () const
 
uint8_t getChecksum () const
 
size_t getSize () const
 

Static Public Member Functions

static SRecord getHeader (StringRef FileName)
 
static uint8_t getType (uint32_t Address)
 

Public Attributes

uint8_t Type
 
uint32_t Address
 
ArrayRef< uint8_tData
 

Detailed Description

Definition at line 421 of file ELFObject.h.

Member Enumeration Documentation

◆ Type

Enumerator
S0 
S1 
S2 
S3 
S4 
S5 
S6 
S7 
S8 
S9 

Definition at line 434 of file ELFObject.h.

Member Function Documentation

◆ getAddressSize()

uint8_t SRecord::getAddressSize ( ) const

Definition at line 2968 of file ELFObject.cpp.

References S2, S3, S7, and S8.

Referenced by getCount(), getSize(), and toString().

◆ getChecksum()

uint8_t SRecord::getChecksum ( ) const

Definition at line 2952 of file ELFObject.cpp.

References Address, Data, and getCount().

Referenced by toString().

◆ getCount()

uint8_t SRecord::getCount ( ) const

Definition at line 2983 of file ELFObject.cpp.

References Data, getAddressSize(), and llvm::ArrayRef< T >::size().

Referenced by getChecksum(), and toString().

◆ getHeader()

SRecord SRecord::getHeader ( StringRef  FileName)
static

◆ getSize()

size_t SRecord::getSize ( ) const

Definition at line 2963 of file ELFObject.cpp.

References Data, getAddressSize(), and llvm::ArrayRef< T >::size().

Referenced by toString().

◆ getType()

uint8_t SRecord::getType ( uint32_t  Address)
static

◆ toString()

SRecLineData SRecord::toString ( ) const

Definition at line 2932 of file ELFObject.cpp.

References Address, assert(), Data, getAddressSize(), getChecksum(), getCount(), getSize(), toHexStr(), and X.

Member Data Documentation

◆ Address

uint32_t llvm::objcopy::elf::SRecord::Address

Definition at line 423 of file ELFObject.h.

Referenced by getChecksum(), getType(), and toString().

◆ Data

ArrayRef<uint8_t> llvm::objcopy::elf::SRecord::Data

Definition at line 424 of file ELFObject.h.

Referenced by getChecksum(), getCount(), getHeader(), getSize(), and toString().

◆ Type

Definition at line 422 of file ELFObject.h.


The documentation for this struct was generated from the following files: