@@ -77,7 +77,7 @@ typedef enum BrotliEncoderOperation {
77
77
* Actual flush is performed when input stream is depleted and there is enough
78
78
* space in output stream. This means that client should repeat
79
79
* ::BROTLI_OPERATION_FLUSH operation until @p available_in becomes @c 0, and
80
- * ::BrotliEncoderHasMoreOutput returns ::BROTLI_FALSE. If output is acquired
80
+ * ::MonoBrotliEncoderHasMoreOutput returns ::BROTLI_FALSE. If output is acquired
81
81
* via ::BrotliEncoderTakeOutput, then operation should be repeated after
82
82
* output buffer is drained.
83
83
*
@@ -94,7 +94,7 @@ typedef enum BrotliEncoderOperation {
94
94
* Actual finalization is performed when input stream is depleted and there is
95
95
* enough space in output stream. This means that client should repeat
96
96
* ::BROTLI_OPERATION_FINISH operation until @p available_in becomes @c 0, and
97
- * ::BrotliEncoderHasMoreOutput returns ::BROTLI_FALSE. If output is acquired
97
+ * ::MonoBrotliEncoderHasMoreOutput returns ::BROTLI_FALSE. If output is acquired
98
98
* via ::BrotliEncoderTakeOutput, then operation should be repeated after
99
99
* output buffer is drained.
100
100
*
@@ -130,7 +130,7 @@ typedef enum BrotliEncoderOperation {
130
130
BROTLI_OPERATION_EMIT_METADATA = 3
131
131
} BrotliEncoderOperation ;
132
132
133
- /** Options to be used with ::BrotliEncoderSetParameter . */
133
+ /** Options to be used with ::MonoBrotliEncoderSetParameter . */
134
134
typedef enum BrotliEncoderParameter {
135
135
/**
136
136
* Tune encoder for specific input.
@@ -177,7 +177,7 @@ typedef enum BrotliEncoderParameter {
177
177
*/
178
178
BROTLI_PARAM_DISABLE_LITERAL_CONTEXT_MODELING = 4 ,
179
179
/**
180
- * Estimated total input size for all ::BrotliEncoderCompressStream calls.
180
+ * Estimated total input size for all ::MonoBrotliEncoderCompressStream calls.
181
181
*
182
182
* The default value is 0, which means that the total input size is unknown.
183
183
*/
@@ -223,8 +223,8 @@ typedef enum BrotliEncoderParameter {
223
223
/**
224
224
* Opaque structure that holds encoder state.
225
225
*
226
- * Allocated and initialized with ::BrotliEncoderCreateInstance .
227
- * Cleaned up and deallocated with ::BrotliEncoderDestroyInstance .
226
+ * Allocated and initialized with ::MonoBrotliEncoderCreateInstance .
227
+ * Cleaned up and deallocated with ::MonoBrotliEncoderDestroyInstance .
228
228
*/
229
229
typedef struct BrotliEncoderStateStruct BrotliEncoderState ;
230
230
@@ -242,7 +242,7 @@ typedef struct BrotliEncoderStateStruct BrotliEncoderState;
242
242
* @warning invalid values might be accepted in case they would not break
243
243
* encoding process.
244
244
*/
245
- BROTLI_ENC_API BROTLI_BOOL BrotliEncoderSetParameter (
245
+ BROTLI_ENC_API BROTLI_BOOL MonoBrotliEncoderSetParameter (
246
246
BrotliEncoderState * state , BrotliEncoderParameter param , uint32_t value );
247
247
248
248
/**
@@ -259,21 +259,21 @@ BROTLI_ENC_API BROTLI_BOOL BrotliEncoderSetParameter(
259
259
* @returns @c 0 if instance can not be allocated or initialized
260
260
* @returns pointer to initialized ::BrotliEncoderState otherwise
261
261
*/
262
- BROTLI_ENC_API BrotliEncoderState * BrotliEncoderCreateInstance (
262
+ BROTLI_ENC_API BrotliEncoderState * MonoBrotliEncoderCreateInstance (
263
263
brotli_alloc_func alloc_func , brotli_free_func free_func , void * opaque );
264
264
265
265
/**
266
266
* Deinitializes and frees ::BrotliEncoderState instance.
267
267
*
268
268
* @param state decoder instance to be cleaned up and deallocated
269
269
*/
270
- BROTLI_ENC_API void BrotliEncoderDestroyInstance (BrotliEncoderState * state );
270
+ BROTLI_ENC_API void MonoBrotliEncoderDestroyInstance (BrotliEncoderState * state );
271
271
272
272
/**
273
273
* Calculates the output size bound for the given @p input_size.
274
274
*
275
275
* @warning Result is only valid if quality is at least @c 2 and, in
276
- * case ::BrotliEncoderCompressStream was used, no flushes
276
+ * case ::MonoBrotliEncoderCompressStream was used, no flushes
277
277
* (::BROTLI_OPERATION_FLUSH) were performed.
278
278
*
279
279
* @param input_size size of projected input
@@ -309,7 +309,7 @@ BROTLI_ENC_API size_t BrotliEncoderMaxCompressedSize(size_t input_size);
309
309
* @returns ::BROTLI_FALSE if output buffer is too small
310
310
* @returns ::BROTLI_TRUE otherwise
311
311
*/
312
- BROTLI_ENC_API BROTLI_BOOL BrotliEncoderCompress (
312
+ BROTLI_ENC_API BROTLI_BOOL MonoBrotliEncoderCompress (
313
313
int quality , int lgwin , BrotliEncoderMode mode , size_t input_size ,
314
314
const uint8_t input_buffer [BROTLI_ARRAY_PARAM (input_size )],
315
315
size_t * encoded_size ,
@@ -348,17 +348,17 @@ BROTLI_ENC_API BROTLI_BOOL BrotliEncoderCompress(
348
348
* completing the current output block, so it could be fully decoded by stream
349
349
* decoder. To perform flush set @p op to ::BROTLI_OPERATION_FLUSH.
350
350
* Under some circumstances (e.g. lack of output stream capacity) this operation
351
- * would require several calls to ::BrotliEncoderCompressStream . The method must
351
+ * would require several calls to ::MonoBrotliEncoderCompressStream . The method must
352
352
* be called again until both input stream is depleted and encoder has no more
353
- * output (see ::BrotliEncoderHasMoreOutput ) after the method is called.
353
+ * output (see ::MonoBrotliEncoderHasMoreOutput ) after the method is called.
354
354
*
355
355
* Finishing the stream means encoding of all input passed to encoder and
356
356
* adding specific "final" marks, so stream decoder could determine that stream
357
357
* is complete. To perform finish set @p op to ::BROTLI_OPERATION_FINISH.
358
358
* Under some circumstances (e.g. lack of output stream capacity) this operation
359
- * would require several calls to ::BrotliEncoderCompressStream . The method must
359
+ * would require several calls to ::MonoBrotliEncoderCompressStream . The method must
360
360
* be called again until both input stream is depleted and encoder has no more
361
- * output (see ::BrotliEncoderHasMoreOutput ) after the method is called.
361
+ * output (see ::MonoBrotliEncoderHasMoreOutput ) after the method is called.
362
362
*
363
363
* @warning When flushing and finishing, @p op should not change until operation
364
364
* is complete; input stream should not be swapped, reduced or
@@ -377,7 +377,7 @@ BROTLI_ENC_API BROTLI_BOOL BrotliEncoderCompress(
377
377
* @returns ::BROTLI_FALSE if there was an error
378
378
* @returns ::BROTLI_TRUE otherwise
379
379
*/
380
- BROTLI_ENC_API BROTLI_BOOL BrotliEncoderCompressStream (
380
+ BROTLI_ENC_API BROTLI_BOOL MonoBrotliEncoderCompressStream (
381
381
BrotliEncoderState * state , BrotliEncoderOperation op , size_t * available_in ,
382
382
const uint8_t * * next_in , size_t * available_out , uint8_t * * next_out ,
383
383
size_t * total_out );
@@ -399,15 +399,15 @@ BROTLI_ENC_API BROTLI_BOOL BrotliEncoderIsFinished(BrotliEncoderState* state);
399
399
* @returns ::BROTLI_TRUE, if encoder has some unconsumed output
400
400
* @returns ::BROTLI_FALSE otherwise
401
401
*/
402
- BROTLI_ENC_API BROTLI_BOOL BrotliEncoderHasMoreOutput (
402
+ BROTLI_ENC_API BROTLI_BOOL MonoBrotliEncoderHasMoreOutput (
403
403
BrotliEncoderState * state );
404
404
405
405
/**
406
406
* Acquires pointer to internal output buffer.
407
407
*
408
408
* This method is used to make language bindings easier and more efficient:
409
- * -# push data to ::BrotliEncoderCompressStream ,
410
- * until ::BrotliEncoderHasMoreOutput returns BROTL_TRUE
409
+ * -# push data to ::MonoBrotliEncoderCompressStream ,
410
+ * until ::MonoBrotliEncoderHasMoreOutput returns BROTL_TRUE
411
411
* -# use ::BrotliEncoderTakeOutput to peek bytes and copy to language-specific
412
412
* entity
413
413
*
0 commit comments