◆ parseBuffer()
Document * Parser::parseBuffer |
( |
const void * |
buf, |
|
|
size_t |
size, |
|
|
int |
width, |
|
|
int |
height, |
|
|
string * |
errmsg |
|
) |
| |
|
static |
Parses NCL document from memory buffer.
- Parameters
-
| buf | Buffer. |
| size | Buffer size in bytes. |
| width | Initial screen width (in pixels). |
| height | Initial screen height (in pixels). |
[out] | errmsg | Variable to store the error message (if any). |
- Returns
- The resulting Document if successful, or null otherwise.
◆ parseFile()
Document * Parser::parseFile |
( |
const string & |
path, |
|
|
int |
width, |
|
|
int |
height, |
|
|
string * |
errmsg |
|
) |
| |
|
static |
Parses NCL document from file.
- Parameters
-
| path | File path. |
| width | Initial screen width (in pixels). |
| height | Initial screen height (in pixels). |
[out] | errmsg | Variable to store the error message (if any). |
- Returns
- The resulting Document if successful, or null otherwise.
The documentation for this class was generated from the following files: