@@ -174,7 +174,7 @@ <h3>Helper functions</h3><pre></pre><b><pre></b>/* ZSTD_compressBound() :<b>
174
174
175
175
< h3 > Compression context</ h3 > < pre > When compressing many times,
176
176
it is recommended to allocate a context just once,
177
- and re-use it for each successive compression operation.
177
+ and reuse it for each successive compression operation.
178
178
This will make workload friendlier for system's memory.
179
179
Note : re-using context is just a speed / resource optimization.
180
180
It doesn't change the compression ratio, which remains identical.
@@ -200,7 +200,7 @@ <h3>Compression context</h3><pre> When compressing many times,
200
200
201
201
< h3 > Decompression context</ h3 > < pre > When decompressing many times,
202
202
it is recommended to allocate a context only once,
203
- and re-use it for each successive compression operation.
203
+ and reuse it for each successive compression operation.
204
204
This will make workload friendlier for system's memory.
205
205
Use one context per thread for parallel execution.
206
206
</ pre > < b > < pre > typedef struct ZSTD_DCtx_s ZSTD_DCtx;
@@ -568,14 +568,14 @@ <h3>Decompression context</h3><pre> When decompressing many times,
568
568
A ZSTD_CStream object is required to track streaming operation.
569
569
Use ZSTD_createCStream() and ZSTD_freeCStream() to create/release resources.
570
570
ZSTD_CStream objects can be reused multiple times on consecutive compression operations.
571
- It is recommended to re-use ZSTD_CStream since it will play nicer with system's memory, by re-using already allocated memory.
571
+ It is recommended to reuse ZSTD_CStream since it will play nicer with system's memory, by re-using already allocated memory.
572
572
573
573
For parallel execution, use one separate ZSTD_CStream per thread.
574
574
575
575
note : since v1.3.0, ZSTD_CStream and ZSTD_CCtx are the same thing.
576
576
577
577
Parameters are sticky : when starting a new compression on the same context,
578
- it will re-use the same sticky parameters as previous compression session.
578
+ it will reuse the same sticky parameters as previous compression session.
579
579
When in doubt, it's recommended to fully initialize the context before usage.
580
580
Use ZSTD_CCtx_reset() to reset the context and ZSTD_CCtx_setParameter(),
581
581
ZSTD_CCtx_setPledgedSrcSize(), or ZSTD_CCtx_loadDictionary() and friends to
@@ -698,7 +698,7 @@ <h3>Streaming compression functions</h3><pre></pre><b><pre>typedef enum {
698
698
< a name ="Chapter9 "> </ a > < h2 > Streaming decompression - HowTo</ h2 > < pre >
699
699
A ZSTD_DStream object is required to track streaming operations.
700
700
Use ZSTD_createDStream() and ZSTD_freeDStream() to create/release resources.
701
- ZSTD_DStream objects can be re-used multiple times.
701
+ ZSTD_DStream objects can be reused multiple times.
702
702
703
703
Use ZSTD_initDStream() to start a new decompression operation.
704
704
@return : recommended first input size
@@ -869,7 +869,7 @@ <h3>Streaming decompression functions</h3><pre></pre><b><pre></pre></b><BR>
869
869
< a name ="Chapter13 "> </ a > < h2 > Advanced dictionary and prefix API (Requires v1.4.0+)</ h2 > < pre >
870
870
This API allows dictionaries to be used with ZSTD_compress2(),
871
871
ZSTD_compressStream2(), and ZSTD_decompressDCtx().
872
- Dictionaries are sticky, they remain valid when same context is re-used ,
872
+ Dictionaries are sticky, they remain valid when same context is reused ,
873
873
they only reset when the context is reset
874
874
with ZSTD_reset_parameters or ZSTD_reset_session_and_parameters.
875
875
In contrast, Prefixes are single-use.
@@ -1857,7 +1857,7 @@ <h3>Advanced Streaming compression functions</h3><pre></pre><b><pre></pre></b><B
1857
1857
explicitly specified.
1858
1858
1859
1859
start a new frame, using same parameters from previous frame.
1860
- This is typically useful to skip dictionary loading stage, since it will re-use it in-place.
1860
+ This is typically useful to skip dictionary loading stage, since it will reuse it in-place.
1861
1861
Note that zcs must be init at least once before using ZSTD_resetCStream().
1862
1862
If pledgedSrcSize is not known at reset time, use macro ZSTD_CONTENTSIZE_UNKNOWN.
1863
1863
If pledgedSrcSize > 0, its value must be correct, as it will be written in header, and controlled at the end.
@@ -1918,7 +1918,7 @@ <h3>Advanced Streaming decompression functions</h3><pre></pre><b><pre></pre></b>
1918
1918
</ b > < p >
1919
1919
ZSTD_DCtx_reset(zds, ZSTD_reset_session_only);
1920
1920
1921
- re-use decompression parameters from previous init; saves dictionary loading
1921
+ reuse decompression parameters from previous init; saves dictionary loading
1922
1922
1923
1923
</ p > </ pre > < BR >
1924
1924
@@ -1964,7 +1964,7 @@ <h3>Advanced Streaming decompression functions</h3><pre></pre><b><pre></pre></b>
1964
1964
< a name ="Chapter21 "> </ a > < h2 > Buffer-less streaming compression (synchronous mode)</ h2 > < pre >
1965
1965
A ZSTD_CCtx object is required to track streaming operations.
1966
1966
Use ZSTD_createCCtx() / ZSTD_freeCCtx() to manage resource.
1967
- ZSTD_CCtx object can be re-used multiple times within successive compression operations.
1967
+ ZSTD_CCtx object can be reused multiple times within successive compression operations.
1968
1968
1969
1969
Start by initializing a context.
1970
1970
Use ZSTD_compressBegin(), or ZSTD_compressBegin_usingDict() for dictionary compression.
@@ -1985,7 +1985,7 @@ <h3>Advanced Streaming decompression functions</h3><pre></pre><b><pre></pre></b>
1985
1985
It's possible to use srcSize==0, in which case, it will write a final empty block to end the frame.
1986
1986
Without last block mark, frames are considered unfinished (hence corrupted) by compliant decoders.
1987
1987
1988
- `ZSTD_CCtx` object can be re-used (ZSTD_compressBegin()) to compress again.
1988
+ `ZSTD_CCtx` object can be reused (ZSTD_compressBegin()) to compress again.
1989
1989
< BR > </ pre >
1990
1990
1991
1991
< h3 > Buffer-less streaming compression functions</ h3 > < pre > </ pre > < b > < pre > ZSTD_DEPRECATED("The buffer-less API is deprecated in favor of the normal streaming API. See docs.")
@@ -2002,7 +2002,7 @@ <h3>Buffer-less streaming compression functions</h3><pre></pre><b><pre>ZSTD_DEPR
2002
2002
< a name ="Chapter22 "> </ a > < h2 > Buffer-less streaming decompression (synchronous mode)</ h2 > < pre >
2003
2003
A ZSTD_DCtx object is required to track streaming operations.
2004
2004
Use ZSTD_createDCtx() / ZSTD_freeDCtx() to manage it.
2005
- A ZSTD_DCtx object can be re-used multiple times.
2005
+ A ZSTD_DCtx object can be reused multiple times.
2006
2006
2007
2007
First typical operation is to retrieve frame parameters, using ZSTD_getFrameHeader().
2008
2008
Frame header is extracted from the beginning of compressed frame, so providing only the frame's beginning is enough.
0 commit comments