Lines Matching refs:buffer
54 It gives full buffer control to user.
176 * Compresses 'srcSize' bytes from buffer 'src'
177 * into already allocated 'dst' buffer of size 'dstCapacity'.
184 * dstCapacity : size of buffer 'dst' (which must be already allocated)
185 * @return : the number of bytes written into buffer 'dst' (necessarily <= dstCapacity)
187 * Note : This function is protected against buffer overflow scenarios (never writes outside 'dst' buffer, nor read outside 'source' buffer).
193 * dstCapacity : is the size of destination buffer (which must be already allocated), presumed an upper bound of decompressed size.
194 * @return : the number of bytes decompressed into destination buffer (necessarily <= dstCapacity)
195 * If destination buffer is not large enough, decoding will stop and output an error code (negative value).
198 * it will never writes outside 'dst' buffer, nor read outside 'source' buffer,
216 This function is primarily useful for memory allocation purposes (destination buffer size).
240 * Then, provide this buffer as `void* state` to compression function.
247 * Reverse the logic : compresses as much data as possible from 'src' buffer
248 * into already allocated buffer 'dst', of size >= 'targetDestSize'.
250 * or fill 'dst' buffer completely with as much data as possible from 'src'.
260 * require to be decompressed into a destination buffer larger
274 * into destination buffer 'dst' of size 'dstCapacity'.
373 * 'dst' buffer must be already allocated.
386 * Note 3 : When input is structured as a double-buffer, each buffer can have any size, including < 64 KB.
390 * Note 4 : If input buffer is a ring-buffer, it can have any size, including < 64 KB.
433 * Note : in a ring buffer scenario (optional),
436 * at which stage it resumes from beginning of ring buffer.
437 * When setting such a ring buffer for streaming decompression,
438 * provides the minimum size of this ring buffer
440 * @return : minimum ring buffer size,
453 * Special : if decompression side sets a ring buffer, it must respect one of the following conditions :
454 * - Decompression buffer size is _at least_ LZ4_decoderRingBufferSize(maxBlockSize).
459 * Decompression buffer size is _exactly_ the same as compression buffer size,
462 * _then_ decoding & encoding ring buffer can have any size, including small ones ( < 64 KB).
463 * - Decompression buffer is larger than encoding buffer, by a minimum of maxBlockSize more bytes.
465 * and encoding ring buffer can have any size, including small ones ( < 64 KB).
468 * save the last 64KB of decoded data into a safe buffer where it can't be modified during decompression,
539 * It is only safe to call if the state buffer is known to be correctly initialized already
551 * Rather than re-loading the dictionary buffer into a working context before
570 * stream (and source buffer) must remain in-place / accessible / unchanged
580 * It's possible to have input and output sharing the same buffer,
582 * In both cases, it requires input to lay at the end of the buffer,
583 * and decompression to start at beginning of the buffer.
586 * |<------------------------buffer--------------------------------->|
595 * In-place decompression will work inside any buffer
605 * As a consequence, buffer size requirements are much higher,
622 * In-place compression can work in any buffer
701 * It can also initialize any arbitrary buffer of sufficient size,
709 LZ4LIB_API LZ4_stream_t* LZ4_initStream (void* buffer, size_t size);
799 * and therefore must progress more cautiously into the input buffer to not read beyond the end of block.
811 * @return : number of bytes read from source buffer (== compressed size).
814 * note : LZ4_decompress_fast*() requires originalSize. Thanks to this information, it never writes past the output buffer.
815 * However, since it doesn't know its 'src' size, it may read an unknown amount of input, past input buffer bounds.