|
Bond 0.9
C++ Bond Runtime Library API Documentation
|
A validator for Bond CBO bytecode streams. More...
#include <bond/tools/cbovalidator.h>
Classes | |
| struct | Result |
| Summary information produced during CBO validation. More... | |
Public Member Functions | |
| Result | Validate (const void *byteCode, size_t length) |
| Validates CBO data from an in-memory byte buffer. | |
| Result | Validate (InputStream &stream) |
| Validates CBO data from an input stream, starting at its current position. | |
A validator for Bond CBO bytecode streams.
The CboValidator verifies the structure of serialized CBO data and reports summary information about the validated contents, such as the number of entries in each table, which CboLoader uses to size its allocations. A Bond::Exception is thrown if the CBO data is invalid, incomplete or has an unsupported format version.
| Result Bond::CboValidator::Validate | ( | const void * | byteCode, |
| size_t | length ) |
Validates CBO data from an in-memory byte buffer.
| byteCode | Pointer to the beginning of the byte buffer. |
| length | The number of bytes in the buffer. |
| Result Bond::CboValidator::Validate | ( | InputStream & | stream | ) |
Validates CBO data from an input stream, starting at its current position.
| stream | Input stream containing CBO data. Its position is left after the validated data, so it must be reset before the data is read again. |