diff options
author | Vincent Sanders <vince@kyllikki.org> | 2018-01-19 23:55:30 +0000 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2018-01-19 23:55:30 +0000 |
commit | e9d3ec85ad043523a47c0eef2a1662e79184e3b3 (patch) | |
tree | f8a08ba1cc125a2a18c8f9719fb73fc5b8977f3e /src/cos_object.h | |
parent | a686f1b43b9474376d6bf52352d2b82b4e618769 (diff) | |
download | libnspdf-e9d3ec85ad043523a47c0eef2a1662e79184e3b3.tar.gz libnspdf-e9d3ec85ad043523a47c0eef2a1662e79184e3b3.tar.bz2 |
convert to using stream offset type for stream offsets
Diffstat (limited to 'src/cos_object.h')
-rw-r--r-- | src/cos_object.h | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/src/cos_object.h b/src/cos_object.h index 9b98694..c5b85fa 100644 --- a/src/cos_object.h +++ b/src/cos_object.h @@ -15,6 +15,8 @@ #ifndef NSPDF__COS_OBJECT_H_ #define NSPDF__COS_OBJECT_H_ +#include "cos_stream.h" + struct nspdf_doc; struct content_operation; @@ -75,12 +77,6 @@ struct cos_reference { uint64_t generation; /**< generation of indirect object */ }; -struct cos_stream { - unsigned int length; /**< decoded stream length */ - size_t alloc; /**< memory allocated for stream */ - const uint8_t *data; /**< decoded stream data */ -}; - /** * Synthetic parsed content object. @@ -102,7 +98,7 @@ struct cos_object { int64_t i; /** real */ - double r; + float real; /** name */ char *n; @@ -113,10 +109,10 @@ struct cos_object { /** stream data */ struct cos_stream *stream; - /* dictionary */ + /** dictionary */ struct cos_dictionary_entry *dictionary; - /* array */ + /** array */ struct cos_array *array; /** reference */ |