mirror of
https://github.com/dlang/phobos.git
synced 2025-04-28 06:00:35 +03:00
std.zlib: clean imports
This commit is contained in:
parent
abc3fb1dbf
commit
cf5d056a45
1 changed files with 6 additions and 1 deletions
|
@ -23,7 +23,7 @@ module std.zlib;
|
||||||
|
|
||||||
//debug=zlib; // uncomment to turn on debugging printf's
|
//debug=zlib; // uncomment to turn on debugging printf's
|
||||||
|
|
||||||
private import etc.c.zlib, std.conv;
|
import etc.c.zlib;
|
||||||
|
|
||||||
// Values for 'mode'
|
// Values for 'mode'
|
||||||
|
|
||||||
|
@ -163,6 +163,7 @@ const(void)[] compress(const(void)[] buf)
|
||||||
|
|
||||||
void[] uncompress(void[] srcbuf, size_t destlen = 0u, int winbits = 15)
|
void[] uncompress(void[] srcbuf, size_t destlen = 0u, int winbits = 15)
|
||||||
{
|
{
|
||||||
|
import std.conv : to;
|
||||||
int err;
|
int err;
|
||||||
ubyte[] destbuf;
|
ubyte[] destbuf;
|
||||||
|
|
||||||
|
@ -267,6 +268,8 @@ enum HeaderFormat {
|
||||||
|
|
||||||
class Compress
|
class Compress
|
||||||
{
|
{
|
||||||
|
import std.conv: to;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
z_stream zs;
|
z_stream zs;
|
||||||
int level = Z_DEFAULT_COMPRESSION;
|
int level = Z_DEFAULT_COMPRESSION;
|
||||||
|
@ -429,6 +432,8 @@ class Compress
|
||||||
|
|
||||||
class UnCompress
|
class UnCompress
|
||||||
{
|
{
|
||||||
|
import std.conv: to;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
z_stream zs;
|
z_stream zs;
|
||||||
int inited;
|
int inited;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue