Platforms to show: All Mac Windows Linux Cross-Platform

Back to BZip2CompressMBS class.

BZip2CompressMBS.kCONFIG_ERROR = -9

Type Topic Plugin Version
const Compression MBS Compression Plugin 9.7
One of the error constants.

Indicates that the library has been improperly compiled on your platform -- a major configuration error. Specifically, it means that sizeof(char), sizeof(short) and sizeof(int) are not 1, 2 and 4 respectively, as they should be. Note that the library should still work properly on 64-bit platforms which follow the LP64 programming model -- that is, where sizeof(long) and sizeof(void*) are 8. Under LP64, sizeof(int) is still 4, so libbzip2, which doesn't use the long type, is OK.

This should never happen with the plugin.

BZip2CompressMBS.kDATA_ERROR = -4

Type Topic Plugin Version
const Compression MBS Compression Plugin 9.7
One of the error constants.

Returned when a data integrity error is detected during decompression. Most importantly, this means when stored and computed CRCs for the data do not match. This value is also returned upon detection of any other anomaly in the compressed data.

BZip2CompressMBS.kDATA_ERROR_MAGIC = -5

Type Topic Plugin Version
const Compression MBS Compression Plugin 9.7
One of the error constants.

As a special case of kDATA_ERROR, it is sometimes useful to know when the compressed stream does not start with the correct magic bytes ('B' 'Z' 'h').

BZip2CompressMBS.kFINISH = 2

Type Topic Plugin Version
const Compression MBS Compression Plugin 9.7
One of the command constants for bzip.

BZip2CompressMBS.kFINISH_OK = 3

Type Topic Plugin Version
const Compression MBS Compression Plugin 9.7
One of the error constants.

In Compress, the requested flush/finish/nothing-special action was completed successfully.

BZip2CompressMBS.kFLUSH = 1

Type Topic Plugin Version
const Compression MBS Compression Plugin 9.7
One of the command constants for bzip.

BZip2CompressMBS.kFLUSH_OK = 2

Type Topic Plugin Version
const Compression MBS Compression Plugin 9.7
One of the error constants.

In Compress, the requested flush/finish/nothing-special action was completed successfully.

BZip2CompressMBS.kIO_ERROR = -6

Type Topic Plugin Version
const Compression MBS Compression Plugin 9.7
One of the error constants.

Returned by Read and Write when there is an error reading or writing in the compressed file, and by ReadOpen and WriteOpen for attempts to use a file for which the error indicator (viz, ferror(f)) is set. On receipt of kIO_ERROR, the caller should consult errno and/or perror to acquire operating-system specific information about the problem.

BZip2CompressMBS.kMEM_ERROR = -3

Type Topic Plugin Version
const Compression MBS Compression Plugin 9.7
One of the error constants.

Returned when a request to allocate memory failed. Note that the quantity of memory needed to decompress a stream cannot be determined until the stream's header has been read. So Decompress and Read may return kMEM_ERROR even though some of the compressed data has been read. The same is not true for compression; once CompressInit or WriteOpen have successfully completed, kMEM_ERROR cannot occur.

BZip2CompressMBS.kOK = 0

Type Topic Plugin Version
const Compression MBS Compression Plugin 9.7
One of the error constants.

The requested action was completed successfully.

BZip2CompressMBS.kOUTBUFF_FULL = -8

Type Topic Plugin Version
const Compression MBS Compression Plugin 9.7
One of the error constants.

Returned by BuffToBuffCompress and BuffToBuffDecompress to indicate that the output data will not fit into the output buffer provided.

BZip2CompressMBS.kPARAM_ERROR = -2

Type Topic Plugin Version
const Compression MBS Compression Plugin 9.7
One of the error constants.

Returned when a parameter to a function call is out of range or otherwise manifestly incorrect. As with kSEQUENCE_ERROR, this denotes a bug in the client code. The distinction between kPARAM_ERROR and kSEQUENCE_ERROR is a bit hazy, but still worth making.

BZip2CompressMBS.kRUN = 0

Type Topic Plugin Version
const Compression MBS Compression Plugin 9.7
One of the command constants for bzip.

BZip2CompressMBS.kRUN_OK = 1

Type Topic Plugin Version
const Compression MBS Compression Plugin 9.7
One of the error constants.

In Compress, the requested flush/finish/nothing-special action was completed successfully.

BZip2CompressMBS.kSEQUENCE_ERROR = -1

Type Topic Plugin Version
const Compression MBS Compression Plugin 9.7
One of the error constants.

When using the library, it is important to call the functions in the correct sequence and with data structures (buffers etc) in the correct states. libbzip2 checks as much as it can to ensure this is happening, and returns kSEQUENCE_ERROR if not. Code which complies precisely with the function semantics, as detailed below, should never receive this value; such an event denotes buggy code which you should investigate.

BZip2CompressMBS.kSTREAM_END = 4

Type Topic Plugin Version
const Compression MBS Compression Plugin 9.7
One of the error constants.

Compression of data was completed, or the logical stream end was detected during decompression.

BZip2CompressMBS.kUNEXPECTED_EOF = -7

Type Topic Plugin Version
const Compression MBS Compression Plugin 9.7
One of the error constants.

Returned by Read when the compressed file finishes before the logical end of stream is detected.

The items on this page are in the following plugins: MBS Compression Plugin.


The biggest plugin in space...