This project is read-only.

Seeking to a file position in an OPC File

Dec 20, 2011 at 3:54 PM

Hi guys

I was wondering if there currently is the ability or plans to implement a file seek for reading/writing streams in the libOPC?  At the moment I only see the opcContainerReadInputStream function.



Dec 21, 2011 at 2:14 PM


i don't think we will have random access to compressed stream soon. Its quite a task. However random access to non-compressed i.e. "STORED" streams should be easy.


Do you think random access to non-compressed streams would help you solve your problem?



Dec 21, 2011 at 6:40 PM
Edited Dec 21, 2011 at 6:41 PM

that could work as well.  Although it would be ideal for it to work on compressed streams as well.

At the moment I did develop a "STORED" stream wrapper around an OPC part but it essentially loads up the entire part in memory and operates from there.  It wouldn't be great for parts that take a lot of memory but works for my test programs.