#include <metadata_stream.h>
|
| Stream (StreamType streamType, std::uint64_t streamOffset, std::uint64_t streamSize) |
|
◆ TypeToTableMap
◆ MetadataStream()
retdec::fileformat::MetadataStream::MetadataStream |
( |
std::uint64_t |
streamOffset, |
|
|
std::uint64_t |
streamSize |
|
) |
| |
◆ addMetadataTable()
Adds new metadata table with the specified type and returns it. Each table can only be present once in the stream. Every subsequent try to insert the table with type that already exists ends with failure and pointer to the original table is returned instead.
- Parameters
-
tableType | Type of the metadata table. |
tableSize | Size of the metadata table. |
- Returns
- Inserted table.
◆ getBlobStreamIndexSize()
std::uint32_t retdec::fileformat::MetadataStream::getBlobStreamIndexSize |
( |
| ) |
const |
Returns the size (in bytes) of index into blob stream. Can be only 2 or 4.
- Returns
- Blob stream index size.
◆ getGuidStreamIndexSize()
std::uint32_t retdec::fileformat::MetadataStream::getGuidStreamIndexSize |
( |
| ) |
const |
Returns the size (in bytes) of index into guid stream. Can be only 2 or 4.
- Returns
- Guid stream index size.
◆ getMajorVersion()
std::uint32_t retdec::fileformat::MetadataStream::getMajorVersion |
( |
| ) |
const |
Returns the major version.
- Returns
- Major version.
◆ getMetadataTable() [1/2]
Returns the metadata table for the specified type if it exists.
- Parameters
-
tableType | Type of the metadata table. |
- Returns
- Metadata table if exists, otherwise
nullptr
.
◆ getMetadataTable() [2/2]
Returns the metadata table for the specified type if it exists.
- Parameters
-
tableType | Type of the metadata table. |
- Returns
- Metadata table if exists, otherwise
nullptr
.
◆ getMinorVersion()
std::uint32_t retdec::fileformat::MetadataStream::getMinorVersion |
( |
| ) |
const |
Returns the minor version.
- Returns
- Minor version.
◆ getStringStreamIndexSize()
std::uint32_t retdec::fileformat::MetadataStream::getStringStreamIndexSize |
( |
| ) |
const |
Returns the size (in bytes) of index into string stream. Can be only 2 or 4.
- Returns
- String stream index size.
◆ hasTable()
bool retdec::fileformat::MetadataStream::hasTable |
( |
MetadataTableType |
tableType | ) |
const |
Checks whether the stream contains table of a given type.
- Parameters
-
tableType | Type of the metadata table. |
- Returns
true
if present, otherwise false
.
◆ setBlobStreamIndexSize()
void retdec::fileformat::MetadataStream::setBlobStreamIndexSize |
( |
std::uint32_t |
indexSize | ) |
|
Sets the size (in bytes) of index into blob stream. Size is set to 4 if number greater than 2 is provided. Otherwise, it is set to 2.
- Parameters
-
indexSize | Size of the index. |
◆ setGuidStreamIndexSize()
void retdec::fileformat::MetadataStream::setGuidStreamIndexSize |
( |
std::uint32_t |
indexSize | ) |
|
Sets the size (in bytes) of index into guid stream. Size is set to 4 if number greater than 2 is provided. Otherwise, it is set to 2.
- Parameters
-
indexSize | Size of the index. |
◆ setMajorVersion()
void retdec::fileformat::MetadataStream::setMajorVersion |
( |
std::uint32_t |
streamMajorVersion | ) |
|
Sets the major version.
- Parameters
-
streamMajorVersion | Major version. |
◆ setMinorVersion()
void retdec::fileformat::MetadataStream::setMinorVersion |
( |
std::uint32_t |
streamMinorVersion | ) |
|
Sets the minor version.
- Parameters
-
streamMinorVersion | Minor version. |
◆ setStringStreamIndexSize()
void retdec::fileformat::MetadataStream::setStringStreamIndexSize |
( |
std::uint32_t |
indexSize | ) |
|
Sets the size (in bytes) of index into string stream. Size is set to 4 if number greater than 2 is provided. Otherwise, it is set to 2.
- Parameters
-
indexSize | Size of the index. |
◆ blobStreamIndexSize
std::uint32_t retdec::fileformat::MetadataStream::blobStreamIndexSize |
|
private |
◆ guidStreamIndexSize
std::uint32_t retdec::fileformat::MetadataStream::guidStreamIndexSize |
|
private |
◆ majorVersion
std::uint32_t retdec::fileformat::MetadataStream::majorVersion |
|
private |
◆ metadataTables
◆ minorVersion
std::uint32_t retdec::fileformat::MetadataStream::minorVersion |
|
private |
◆ stringStreamIndexSize
std::uint32_t retdec::fileformat::MetadataStream::stringStreamIndexSize |
|
private |
The documentation for this class was generated from the following files:
- /var/cache/acbs/build/acbs.6bu6osb6/retdec/include/retdec/fileformat/types/dotnet_headers/metadata_stream.h
- /var/cache/acbs/build/acbs.6bu6osb6/retdec/src/fileformat/types/dotnet_headers/metadata_stream.cpp