Work on token parsing.

This commit is contained in:
Michael R Sweet
2021-05-01 17:50:52 -04:00
parent f5f0e190b5
commit e107b94c83
9 changed files with 338 additions and 110 deletions

View File

@@ -56,13 +56,26 @@ pdfioStreamGetToken(
pdfio_stream_t *st, // I - Stream
char *buffer, // I - String buffer
size_t bufsize) // I - Size of string buffer
{
return (_pdfioTokenRead(buffer, bufsize, (_pdfio_token_cb_t)pdfioStreamPeek, (_pdfio_token_cb_t)pdfioStreamRead, st));
}
//
// 'pdfioStreamPeek()' - Peek at data in a stream.
//
ssize_t // O - Bytes returned or `-1` on error
pdfioStreamPeek(pdfio_stream_t *st, // I - Stream
void *buffer, // I - Buffer
size_t bytes) // I - Size of buffer
{
// TODO: Implement me
(void)st;
(void)buffer;
(void)bufsize;
(void)bytes;
return (false);
return (-1);
}