Ghidra 11.3.2
Ghidra internal decompiler documentation.
Loading...
Searching...
No Matches
slaformat.hh File Reference

Encoding values for the SLA file format. More...

#include "compression.hh"
#include "marshal.hh"
Include dependency graph for slaformat.hh:
This graph shows which files directly or indirectly include this file:

Classes

class  ghidra::sla::FormatEncode
 The encoder for the .sla file format. More...
 
class  ghidra::sla::FormatDecode
 The decoder for the .sla file format. More...
 

Functions

bool ghidra::sla::isSlaFormat (istream &s)
 Verify a .sla file header at the current point of the given stream.
 
void ghidra::sla::writeSlaHeader (ostream &s)
 Write a .sla file header to the given stream.
 

Detailed Description

Encoding values for the SLA file format.

Function Documentation

◆ isSlaFormat()

bool ghidra::sla::isSlaFormat ( istream &  s)

Verify a .sla file header at the current point of the given stream.

The bytes of the header are read from the stream and verified against the required form and current version. If the form matches, true is returned. No additional bytes are read.

Parameters
sis the given stream
Returns
true if a valid header is present

◆ writeSlaHeader()

void ghidra::sla::writeSlaHeader ( ostream &  s)

Write a .sla file header to the given stream.

A valid header, including the format version number, is written to the stream.

Parameters
sis the given stream