![]() So it looks like you need to write out a few file headers first to give the details about the compression data that is coming. only now does it write out the compressed data:Įncoder.Code(inStream, outStream, -1, -1, null) ![]() ![]() TrainStream.Seek(doubleStream.skipSize, SeekOrigin.Begin) Įncoder.SetTrainSize((uint)(trainFileSize - doubleStream.skipSize)) It does things like this before it writes out the compressed data: CoderPropID propIDs =Ĭ encoder = new () Įncoder.SetCoderProperties(propIDs, properties) ĬDoubleStream doubleStream = new CDoubleStream() ĭoubleStream.skipSize = trainFileSize - dictionary Have you looked at the example project included with the SDK? It is in the CS\7zip\Compress\LzmaAlone\ folder and it contains a file LmzaAlone.cs which has some stuff which encodes a file.
0 Comments
Leave a Reply. |