PDA

View Full Version : How do I use s3pi to copy compressed resource from one package to another?


granthes
2nd Jun 2010, 08:31 PM
I'm writing a program that needs to be able to read all of the resources from several package and store them in a single new package.

Can s3pi move resources directly?

Currently I'm creating a new resource with the same rk in the new package and copying the stream from one to another.

The disadvantage to this is
1) the resource is decompressed/recompressed
2) the temporary streams bloat memory usage during the copy
3) writing the resulting package stalls the UI while recompressing all of the resources


Thanks in advance. :)

--Grant

pljones
2nd Jun 2010, 09:16 PM
No, there's no access to the raw data. You could open the package and use the index entries to access the data in the package stream, of course.

granthes
2nd Jun 2010, 09:24 PM
No, there's no access to the raw data. You could open the package and use the index entries to access the data in the package stream, of course.
Thanks...

I'll see what I can whip up, then.

Thanks!