mirror of
https://github.com/michaelrsweet/pdfio.git
synced 2025-08-29 23:32:15 +02:00
Work on token parsing.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user