MDF Lib 2.2
Interface against MDF 3/4 files
Loading...
Searching...
No Matches
zlibutil.h File Reference

Various ZLIB compress functions.

#include <cstdint>
#include <cstdio>
#include <string>
#include <vector>
Include dependency graph for zlibutil.h:

Go to the source code of this file.

Namespaces

namespace  mdf
 Main namespace for the MDF library.
 

Typedefs

using mdf::ByteArray = std::vector<uint8_t>
 Defines a dynamic byte array.
 

Functions

bool mdf::Deflate (std::FILE *in, std::FILE *out)
 Compress file to file.
 
bool mdf::Deflate (const ByteArray &buf_in, ByteArray &buf_out)
 Compress array to array.
 
bool mdf::Deflate (const std::string &filename, ByteArray &buf_out)
 Compress array to array.
 
bool mdf::Inflate (std::FILE *in, std::FILE *out)
 Decompress file to file.
 
bool mdf::Inflate (std::FILE *in, std::FILE *out, uint64_t nof_bytes)
 Decompress part of file to file.
 
bool mdf::Inflate (const ByteArray &in, ByteArray &out)
 Decompress array to array.
 
bool mdf::Inflate (const ByteArray &in, std::FILE *out)
 Decompress array to file.
 
void mdf::Transpose (ByteArray &data, size_t record_size)
 Transpose of an array.
 
void mdf::InvTranspose (ByteArray &data, size_t record_size)
 Invert transpose of an array.