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

#include "ObjCopy/ELF/ELFObject.h"

Public Types

enum  Type {
  Data = 0 , EndOfFile = 1 , SegmentAddr = 2 , StartAddr80x86 = 3 ,
  ExtendedAddr = 4 , StartAddr = 5 , InvalidType = 6
}
 

Static Public Member Functions

static size_t getLength (size_t DataSize)
 
static size_t getLineLength (size_t DataSize)
 
static IHexLineData getLine (uint8_t Type, uint16_t Addr, ArrayRef< uint8_t > Data)
 
static Expected< IHexRecordparse (StringRef Line)
 
static uint8_t getChecksum (StringRef S)
 

Public Attributes

uint16_t Addr
 
uint16_t Type
 
StringRef HexData
 

Detailed Description

Definition at line 199 of file ELFObject.h.

Member Enumeration Documentation

◆ Type

Enumerator
Data 
EndOfFile 
SegmentAddr 
StartAddr80x86 
ExtendedAddr 
StartAddr 
InvalidType 

Definition at line 233 of file ELFObject.h.

Member Function Documentation

◆ getChecksum()

uint8_t IHexRecord::getChecksum ( StringRef  S)
static

◆ getLength()

static size_t llvm::objcopy::elf::IHexRecord::getLength ( size_t  DataSize)
inlinestatic

Definition at line 209 of file ELFObject.h.

Referenced by getLineLength(), and parse().

◆ getLine()

IHexLineData IHexRecord::getLine ( uint8_t  Type,
uint16_t  Addr,
ArrayRef< uint8_t >  Data 
)
static

◆ getLineLength()

static size_t llvm::objcopy::elf::IHexRecord::getLineLength ( size_t  DataSize)
inlinestatic

Definition at line 215 of file ELFObject.h.

References getLength().

Referenced by getLine(), and llvm::objcopy::elf::IHexSectionWriterBase::writeData().

◆ parse()

Expected< IHexRecord > IHexRecord::parse ( StringRef  Line)
static

Member Data Documentation

◆ Addr

uint16_t llvm::objcopy::elf::IHexRecord::Addr

Definition at line 201 of file ELFObject.h.

Referenced by getLine(), and parse().

◆ HexData

StringRef llvm::objcopy::elf::IHexRecord::HexData

Definition at line 205 of file ELFObject.h.

Referenced by parse().

◆ Type

Definition at line 203 of file ELFObject.h.


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