|
KiCad PCB EDA Suite
|
A bounds-checked reader positioned at one record inside a buffer. More...
#include <pads_binary_utils.h>
Public Member Functions | |
| SDB_RECORD (const BINARY_CURSOR &aCursor, size_t aBase) | |
| uint8_t | U8 (size_t aOffset) const |
| uint16_t | U16 (size_t aOffset) const |
| uint32_t | U32 (size_t aOffset) const |
| int32_t | I32 (size_t aOffset) const |
| double | F64 (size_t aOffset) const |
| std::string | Str (size_t aOffset, size_t aMaxLen) const |
| size_t | Base () const |
Private Attributes | |
| const BINARY_CURSOR & | m_cursor |
| size_t | m_base |
A bounds-checked reader positioned at one record inside a buffer.
Field reads are by offset relative to the record base, so a reader can express its record layout with named field constants instead of absolute file offsets.
Holds a reference to the owning cursor; it is a transient view and must not outlive the buffer the cursor binds.
Definition at line 312 of file pads_binary_utils.h.
|
inline |
Definition at line 315 of file pads_binary_utils.h.
|
inline |
Definition at line 329 of file pads_binary_utils.h.
References m_base.
|
inline |
Definition at line 323 of file pads_binary_utils.h.
|
inline |
Definition at line 322 of file pads_binary_utils.h.
References m_base, and m_cursor.
Referenced by PADS_IO::BINARY_PARSER::applyNetClassClearances(), PADS_IO::deriveArc(), PADS_IO::BINARY_PARSER::makePlacementPart(), PADS_IO::BINARY_PARSER::parseBoardOutlineDirect(), PADS_IO::BINARY_PARSER::parseDecalNameTable(), PADS_IO::BINARY_PARSER::parseDecalNameTableOld(), PADS_IO::BINARY_PARSER::parseFreeText(), PADS_IO::BINARY_PARSER::parseGraphicLines(), PADS_IO::BINARY_PARSER::parseLayerStackup(), PADS_IO::BINARY_PARSER::parsePadStacks(), PADS_IO::BINARY_PARSER::parsePartPlacements(), PADS_IO::BINARY_PARSER::parsePartTypeTable(), PADS_IO::BINARY_PARSER::parsePlacementFields(), PADS_IO::BINARY_PARSER::parseTerminals(), and PADS_IO::BINARY_PARSER::sec12Vertex().
|
inline |
Definition at line 324 of file pads_binary_utils.h.
References m_base, and m_cursor.
Referenced by PADS_IO::BINARY_PARSER::parseClusters(), PADS_IO::BINARY_PARSER::parseDecalNameTable(), PADS_IO::BINARY_PARSER::parseDecalNameTableOld(), PADS_IO::BINARY_PARSER::parseLayerStackup(), PADS_IO::BINARY_PARSER::parseNetConnectionsOld(), PADS_IO::BINARY_PARSER::parseNetNamesNew(), PADS_IO::BINARY_PARSER::parseNetNamesOld(), PADS_IO::BINARY_PARSER::parsePartPlacements(), PADS_IO::BINARY_PARSER::parsePartTypeTable(), and PADS_IO::BINARY_PARSER::parseTerminals().
|
inline |
Definition at line 320 of file pads_binary_utils.h.
References m_base, and m_cursor.
Referenced by PADS_IO::BINARY_PARSER::parseDecalNameTable(), PADS_IO::BINARY_PARSER::parseDecalNameTableOld(), and PADS_IO::BINARY_PARSER::parseFreeText().
|
inline |
Definition at line 321 of file pads_binary_utils.h.
References m_base, and m_cursor.
Referenced by PADS_IO::BINARY_PARSER::applyNetClassClearances(), PADS_IO::BINARY_PARSER::collectNetClassRuleEdges(), PADS_IO::BINARY_PARSER::parseClusters(), PADS_SCH_BINARY::PADS_SCH_SDB::parseDirectory(), PADS_IO::BINARY_PARSER::parseFreeText(), PADS_IO::BINARY_PARSER::parseNetConnectionsOld(), PADS_IO::BINARY_PARSER::parseNetNamesNew(), PADS_IO::BINARY_PARSER::parseNetNamesOld(), PADS_IO::BINARY_PARSER::parsePadStacks(), PADS_IO::BINARY_PARSER::parsePartPlacements(), and PADS_IO::BINARY_PARSER::parsePlacementFields().
|
inline |
Definition at line 319 of file pads_binary_utils.h.
References m_base, and m_cursor.
Referenced by PADS_IO::BINARY_PARSER::makePlacementPart(), PADS_IO::BINARY_PARSER::parsePadStacks(), and PADS_IO::BINARY_PARSER::parsePartPlacements().
|
private |
Definition at line 333 of file pads_binary_utils.h.
Referenced by Base(), F64(), I32(), SDB_RECORD(), Str(), U16(), U32(), and U8().
|
private |
Definition at line 332 of file pads_binary_utils.h.
Referenced by F64(), I32(), SDB_RECORD(), Str(), U16(), U32(), and U8().