Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagecpp
themeConfluence
EdmiError edmiCompressFile(SdaiString  uncompressedFile,
                            SdaiString  compressedFile, 
                            SdaiInteger tradeOff, 
                            SdaiReal    *rate);


Compress a file on the file system.

Arguments

...

TypeNameComment
SdaiString

uncompressedFile

Name of the file to be compressed,

SdaiString

compressedFile

Name of the compressed file.

SdaiInteger

tradeOff

Integer number between 1 and 9. Optimizes on speed and compression rate respectively.

SdaiReal

*rate

Returns the compression rate.

...

Return Value

...

Insert excerpt
US:_r_EDMInterface
US:_r_EDMInterface
nopaneltrue

 

Options

...

  

 

Example

...

 

Code Block
languagecpp
 EdmiError rstat;
 SdaiReal rate;
 SdaiString file = "c:/home/johnny/b43_765.stp";

...


 SdaiString compFile = "c:/home/johnny/ b43_765.stp.zip";

...


 . . .

...


 /* Compress */

...


 if (rstat = edmiCompressFile(file, compFile, 4, &rate)) {

...


 printf("\nError %d in edmiCompressFile: %s", rstat,

...


 edmiGetErrorText(rstat));

...

 
 goto error;

...

 
 }
 printf("\nCompressed %s with Compression Rate: %f", file, rate);

...


 . .

...

 .
  
 /* Uncompress */

...


 if (rstat = edmiUncompressFile(compFile, file, &rate)) {

...


 printf("\nError %d in edmiUncompressFile: %s", rstat,

...


 edmiGetErrorText(rstat));

...

 
 goto error;

...

 
 }
 printf("\nUncompressed %s, Compression Rate: %f", compFile, rate);

...


 . . .

 

See also

Filter by label (Content by label)
showLabelsfalse
showSpacefalse
cqllabel = "model" and parent = "6062220"