fix spelling
This commit is contained in:
parent
6a8e21d802
commit
eb23590d13
@ -6,8 +6,8 @@ LZ4 Frame Format Description
|
||||
Copyright (c) 2013-2020 Yann Collet
|
||||
|
||||
Permission is granted to copy and distribute this document
|
||||
for any purpose and without charge,
|
||||
including translations into other languages
|
||||
for any purpose and without charge,
|
||||
including translations into other languages
|
||||
and incorporation into compilations,
|
||||
provided that the copyright notice and this notice are preserved,
|
||||
and that any substantive changes or deletions from the original
|
||||
@ -47,7 +47,7 @@ at the level of bits and other primitive data representations.
|
||||
Unless otherwise indicated below,
|
||||
a compliant compressor must produce data sets
|
||||
that conform to the specifications presented here.
|
||||
It doesn’t need to support all options though.
|
||||
It doesn't need to support all options though.
|
||||
|
||||
A compliant decompressor must be able to decompress
|
||||
at least one working set of parameters
|
||||
@ -385,7 +385,7 @@ __EndMark__
|
||||
|
||||
End of legacy frame is implicit only.
|
||||
It must be followed by a standard EOF (End Of File) signal,
|
||||
wether it is a file or a stream.
|
||||
whether it is a file or a stream.
|
||||
|
||||
Alternatively, if the frame is followed by a valid Frame Magic Number,
|
||||
it is considered completed.
|
||||
|
@ -1,7 +1,7 @@
|
||||
# LZ4 Streaming API Example : Line by Line Text Compression
|
||||
by *Takayuki Matsuoka*
|
||||
|
||||
`blockStreaming_lineByLine.c` is LZ4 Straming API example which implements line by line incremental (de)compression.
|
||||
`blockStreaming_lineByLine.c` is LZ4 Streaming API example which implements line by line incremental (de)compression.
|
||||
|
||||
Please note the following restrictions :
|
||||
|
||||
@ -117,6 +117,6 @@ Decompression will do reverse order.
|
||||
- Read compressed line from the file to buffer.
|
||||
- Decompress it to the ringbuffer.
|
||||
- Output decompressed plain text line to the file.
|
||||
- Forward ringbuffer offset. If offset exceedes end of the ringbuffer, reset it.
|
||||
- Forward ringbuffer offset. If offset exceeds end of the ringbuffer, reset it.
|
||||
|
||||
Continue these procedure to the end of the compressed file.
|
||||
|
@ -125,7 +125,7 @@ compress_file(FILE* f_in, FILE* f_out)
|
||||
assert(f_in != NULL);
|
||||
assert(f_out != NULL);
|
||||
|
||||
/* ressource allocation */
|
||||
/* resource allocation */
|
||||
LZ4F_compressionContext_t ctx;
|
||||
size_t const ctxCreation = LZ4F_createCompressionContext(&ctx, LZ4F_VERSION);
|
||||
void* const src = malloc(IN_CHUNK_SIZE);
|
||||
@ -286,7 +286,7 @@ static int decompress_file(FILE* f_in, FILE* f_out)
|
||||
{
|
||||
assert(f_in != NULL); assert(f_out != NULL);
|
||||
|
||||
/* Ressource allocation */
|
||||
/* Resource allocation */
|
||||
void* const src = malloc(IN_CHUNK_SIZE);
|
||||
if (!src) { perror("decompress_file(src)"); return 1; }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user