|
KiCad PCB EDA Suite
|
Limit reads to one record so a malformed body cannot consume the next record. More...
#include <orcad_stream.h>
Public Member Functions | |
| LIMIT_GUARD (ORCAD_STREAM &aStream, size_t aEnd) | |
| ~LIMIT_GUARD () | |
| LIMIT_GUARD (const LIMIT_GUARD &)=delete | |
| LIMIT_GUARD & | operator= (const LIMIT_GUARD &)=delete |
Private Attributes | |
| ORCAD_STREAM & | m_stream |
| size_t | m_savedSize |
Limit reads to one record so a malformed body cannot consume the next record.
Definition at line 62 of file orcad_stream.h.
| ORCAD_STREAM::LIMIT_GUARD::LIMIT_GUARD | ( | ORCAD_STREAM & | aStream, |
| size_t | aEnd ) |
Definition at line 76 of file orcad_stream.cpp.
References ORCAD_STREAM::m_offset, m_savedSize, ORCAD_STREAM::m_size, m_stream, ORCAD_STREAM::ORCAD_STREAM(), and THROW_IO_ERRORF.
Referenced by LIMIT_GUARD(), and operator=().
| ORCAD_STREAM::LIMIT_GUARD::~LIMIT_GUARD | ( | ) |
Definition at line 87 of file orcad_stream.cpp.
References m_savedSize, and m_stream.
|
delete |
References LIMIT_GUARD().
|
delete |
References LIMIT_GUARD().
|
private |
Definition at line 73 of file orcad_stream.h.
Referenced by LIMIT_GUARD(), and ~LIMIT_GUARD().
|
private |
Definition at line 72 of file orcad_stream.h.
Referenced by LIMIT_GUARD(), and ~LIMIT_GUARD().