Parolin 0.7.9 6796
Console (soon DLLs) to do a tar like job
Loading...
Searching...
No Matches
lorem.h
Go to the documentation of this file.
1/*
2 * Copyright (c) Meta Platforms, Inc. and affiliates.
3 * All rights reserved.
4 *
5 * This source code is licensed under both the BSD-style license (found in the
6 * LICENSE file in the root directory of this source tree) and the GPLv2 (found
7 * in the COPYING file in the root directory of this source tree).
8 * You may select, at your option, one of the above-listed licenses.
9 */
10
11/* lorem ipsum generator */
12
13#include <stddef.h> /* size_t */
14
15/*
16 * LOREM_genBuffer():
17 * Generate @size bytes of compressible data using lorem ipsum generator
18 * into provided @buffer.
19 */
20void LOREM_genBuffer(void* buffer, size_t size, unsigned seed);
21
22/*
23 * LOREM_genBlock():
24 * Similar to LOREM_genBuffer, with additional controls :
25 * - @first : generate the first sentence
26 * - @fill : fill the entire @buffer,
27 * if ==0: generate one paragraph at most.
28 * @return : nb of bytes generated into @buffer.
29 */
30size_t LOREM_genBlock(void* buffer, size_t size,
31 unsigned seed,
32 int first, int fill);
size_t size
Definition platform.h:559
size_t LOREM_genBlock(void *buffer, size_t size, unsigned seed, int first, int fill)
Definition lorem.c:337
void LOREM_genBuffer(void *buffer, size_t size, unsigned seed)
Definition lorem.c:363
uint32_t seed
Definition stream_decompress.c:26