types.h - Online Linux Manual PageSection : 3
Updated : Thu Feb 22 2018
Source : Brotli
NAMEtypes.h − Common types used in decoder and encoder API.
SYNOPSIS
Macros#define BROTLI_BOOL int
A portable bool replacement. #define BROTLI_FALSE 0
Portable false replacement. #define BROTLI_TRUE 1
Portable true replacement. #define TO_BROTLI_BOOL(X) (!!(X) ? BROTLI_TRUE : BROTLI_FALSE)
bool to BROTLI_BOOL conversion macros.
Typedefstypedef void *(* brotli_alloc_func) (void *opaque, size_t size)
Allocating function pointer type. typedef void(* brotli_free_func) (void *opaque, void *address)
Deallocating function pointer type.
Detailed DescriptionCommon types used in decoder and encoder API.
Macro Definition Documentation
#define BROTLI_BOOL intA portable bool replacement. BROTLI_BOOL is a 'documentation' type: actually it is int, but in API it denotes a type, whose only values are BROTLI_TRUE and BROTLI_FALSE. BROTLI_BOOL values passed to Brotli should either be BROTLI_TRUE or BROTLI_FALSE, or be a result of TO_BROTLI_BOOL macros. BROTLI_BOOL values returned by Brotli should not be tested for equality with true, false, BROTLI_TRUE, BROTLI_FALSE, but rather should be evaluated, for example: if (SomeBrotliFunction(encoder, BROTLI_TRUE) &&
!OtherBrotliFunction(decoder, BROTLI_FALSE)) {
bool x = !!YetAnotherBrotliFunction(encoder, TO_BROLTI_BOOL(2 * 2 == 4));
DoSomething(x);
}
#define BROTLI_FALSE 0Portable false replacement.
#define BROTLI_TRUE 1Portable true replacement.
#define TO_BROTLI_BOOL(X) (!!(X) ? BROTLI_TRUE : BROTLI_FALSE)bool to BROTLI_BOOL conversion macros.
Typedef Documentation
typedef void*(* brotli_alloc_func) (void *opaque, size_t size)Allocating function pointer type. Parameters: opaque custom memory manager handle provided by client
size requested memory region size; can not be 0 Returns: 0 in the case of failure a valid pointer to a memory region of at least size bytes long otherwise
typedef void(* brotli_free_func) (void *opaque, void *address)Deallocating function pointer type. This function SHOULD do nothing if address is 0. Parameters: opaque custom memory manager handle provided by client
address memory region pointer returned by brotli_alloc_func, or 0
AuthorGenerated automatically by Doxygen for Brotli from the source code. 0
Johanes Gumabo
Data Size : 16,363 byte
man-types.h.3brotliBuild : 2024-12-05, 20:55 :
Visitor Screen : x
Visitor Counter ( page / site ) : 4 / 180,262
Visitor ID : :
Visitor IP : 18.118.144.50 :
Visitor Provider : AMAZON-02 :
Provider Position ( lat x lon ) : 39.962500 x -83.006100 : x
Provider Accuracy Radius ( km ) : 1000 :
Provider City : Columbus :
Provider Province : Ohio , : ,
Provider Country : United States :
Provider Continent : North America :
Visitor Recorder : Version :
Visitor Recorder : Library :
Online Linux Manual Page : Version : Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.05
Online Linux Manual Page : Library : lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page : Library : lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base : Version : Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base : Library : lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36
Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.