|
Ghidra 11.4.2
Ghidra internal decompiler documentation.
|
The encoder for the .sla file format. More...
#include <slaformat.hh>
Public Member Functions | |
| FormatEncode (ostream &s, int4 level) | |
| Initialize an encoder at a specific compression level. | |
| void | flush (void) |
| Flush any buffered bytes in the encoder to the backing stream. | |
Public Member Functions inherited from ghidra::PackedEncode | |
| PackedEncode (ostream &s) | |
| Construct from a stream. | |
| virtual void | openElement (const ElementId &elemId) |
| Begin a new element in the encoding. | |
| virtual void | closeElement (const ElementId &elemId) |
| End the current element in the encoding. | |
| virtual void | writeBool (const AttributeId &attribId, bool val) |
| Write an annotated boolean value into the encoding. | |
| virtual void | writeSignedInteger (const AttributeId &attribId, intb val) |
| Write an annotated signed integer value into the encoding. | |
| virtual void | writeUnsignedInteger (const AttributeId &attribId, uintb val) |
| Write an annotated unsigned integer value into the encoding. | |
| virtual void | writeString (const AttributeId &attribId, const string &val) |
| Write an annotated string into the encoding. | |
| virtual void | writeStringIndexed (const AttributeId &attribId, uint4 index, const string &val) |
| Write an annotated string, using an indexed attribute, into the encoding. | |
| virtual void | writeSpace (const AttributeId &attribId, const AddrSpace *spc) |
| Write an address space reference into the encoding. | |
| virtual void | writeOpcode (const AttributeId &attribId, OpCode opc) |
| Write a p-code operation opcode into the encoding, associating it with the given annotation. | |
Public Member Functions inherited from ghidra::Encoder | |
| virtual | ~Encoder (void) |
| Destructor. | |
Private Attributes | |
| CompressBuffer | compBuffer |
| The compression stream filter. | |
| ostream | compStream |
| The front-end stream receiving uncompressed bytes. | |
The encoder for the .sla file format.
This provides the format header, does compression, and encodes the raw data elements/attributes.
| ghidra::sla::FormatEncode::FormatEncode | ( | ostream & | s, |
| int4 | level | ||
| ) |
Initialize an encoder at a specific compression level.
| s | is the backing stream that will receive the final bytes of the .sla file |
| level | is the compression level |