from small one page howto to huge articles all in one place

search text in:




Other .linuxhowtos.org sites:gentoo.linuxhowtos.org



Last additions:
using iotop to find disk usage hogs

using iotop to find disk usage hogs

words:

887

views:

209581

userrating:


May 25th. 2007:
Words

486

Views

258588

why adblockers are bad


Workaround and fixes for the current Core Dump Handling vulnerability affected kernels

Workaround and fixes for the current Core Dump Handling vulnerability affected kernels

words:

161

views:

149878

userrating:


April, 26th. 2006:

Druckversion
You are here: manpages





types.h

Section: C Library Functions (3)
Updated: August 2021
Index Return to Main Contents
 

NAME

types.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.  

Typedefs


typedef 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 Description

Common types used in decoder and encoder API.

 

Macro Definition Documentation

 

#define BROTLI_BOOL int

A 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 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.  

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

 

Author

Generated automatically by Doxygen for Brotli from the source code.


 

Index

NAME
SYNOPSIS
Macros
Typedefs
Detailed Description
Macro Definition Documentation
#define BROTLI_BOOL int
#define BROTLI_FALSE 0
#define BROTLI_TRUE 1
#define TO_BROTLI_BOOL(X) (!!(X) ? BROTLI_TRUE : BROTLI_FALSE)
Typedef Documentation
typedef void*(* brotli_alloc_func) (void *opaque, size_t size)
typedef void(* brotli_free_func) (void *opaque, void *address)
Author





Support us on Content Nation
rdf newsfeed | rss newsfeed | Atom newsfeed
- Powered by LeopardCMS - Running on Gentoo -
Copyright 2004-2025 Sascha Nitsch Unternehmensberatung GmbH
Valid XHTML1.1 : Valid CSS
- Level Triple-A Conformance to Web Content Accessibility Guidelines 1.0 -
- Copyright and legal notices -
Time to create this page: 14.7 ms