mirror of
https://github.com/dlang/phobos.git
synced 2025-04-27 05:30:33 +03:00
more/reformatted documentation for the std.zlib.Compress class
This commit is contained in:
parent
26d8a7154e
commit
0fa1358b64
1 changed files with 14 additions and 3 deletions
17
std/zlib.d
17
std/zlib.d
|
@ -315,7 +315,14 @@ class Compress
|
|||
public:
|
||||
|
||||
/**
|
||||
* Construct. level is the same as for D.zlib.compress(). header can be used to make a gzip compatible stream.
|
||||
* Construct.
|
||||
*
|
||||
* Params:
|
||||
* level = the same as for $(D std.zlib.compress())
|
||||
* header = can be used to make a gzip compatible stream. Defaults to HeaderFormat.deflate.
|
||||
*
|
||||
* See_Also:
|
||||
* $(LREF compress), $(LREF HeaderFormat)
|
||||
*/
|
||||
this(int level, HeaderFormat header = HeaderFormat.deflate)
|
||||
in
|
||||
|
@ -346,8 +353,12 @@ class Compress
|
|||
|
||||
/**
|
||||
* Compress the data in buf and return the compressed data.
|
||||
* The buffers
|
||||
* returned from successive calls to this should be concatenated together.
|
||||
* Params:
|
||||
* buf = data to compress
|
||||
*
|
||||
* Returns:
|
||||
* the compressed data. The buffers returned from successive calls to this should be concatenated together.
|
||||
*
|
||||
*/
|
||||
const(void)[] compress(const(void)[] buf)
|
||||
{ int err;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue