BEAST/BSE - Better Audio System and Sound Engine  0.8.0
Namespaces | Classes | Typedefs | Functions | Variables
Birnet Namespace Reference

Namespaces

namespace  Path

Classes

class  DebugChannel
struct  Msg
class  VirtualTypeid
class  InitHook
struct  Deletable
class  DataKey
class  DataList
class  DataListContainer
class  AlignedArray

Typedefs

typedef BirnetCPUInfo CPUInfo
typedef BirnetUInt8 uint8
typedef BirnetUInt16 uint16
typedef BirnetUInt32 uint32
typedef BirnetUInt64 uint64
typedef BirnetInt8 int8
typedef BirnetInt16 int16
typedef BirnetInt32 int32
typedef BirnetInt64 int64
typedef BirnetUnichar unichar
typedef std::string String
typedef BirnetInitValue InitValue
typedef BirnetInitSettings InitSettings
typedef
Rapicorn::ReferenceCountable 
ReferenceCountImpl

Functions

int main (int argc, char *argv[])
CPUInfo cpu_info (void)
void _birnet_init_cpuinfo (void)
String cpu_info_string (const CPUInfo &cpu_info)
int dtoi32 (double d) BIRNET_CONST
int64 dtoi64 (double d) BIRNET_CONST
int64 iround (double d) BIRNET_CONST
int64 ifloor (double d) BIRNET_CONST
int64 iceil (double d) BIRNET_CONST
int BIRNET_CONST _dtoi32_generic (double d)
int64 BIRNET_CONST _dtoi64_generic (double d)
unichar utf8_to_unichar (const char *str)
int utf8_from_unichar (unichar uc, char str[8])
bool utf8_validate (const String &strng, int *bound)
const char * utf8_next (const char *c)
char * utf8_next (char *c)
const char * utf8_prev (const char *c)
char * utf8_prev (char *c)
const char * utf8_find_next (const char *c, const char *bound=NULL)
char * utf8_find_next (char *current, const char *bound=NULL)
const char * utf8_find_prev (const char *start, const char *current)
char * utf8_find_prev (const char *start, char *currrent)
const char * utf8_align (const char *start, const char *current)
char * utf8_align (const char *start, char *current)
bool utf8_aligned (const char *c)
InitSettings init_settings ()
void birnet_init (int *argcp, char ***argvp, const char *app_name, InitValue ivalues[])
bool init_value_bool (InitValue *value)
double init_value_double (InitValue *value)
int64 init_value_int (InitValue *value)
 BIRNET_STATIC_ASSERT (CHAR_BIT==+8)
 BIRNET_STATIC_ASSERT (SCHAR_MIN==-128)
 BIRNET_STATIC_ASSERT (SCHAR_MAX==+127)
 BIRNET_STATIC_ASSERT (UCHAR_MAX==+255)
 BIRNET_STATIC_ASSERT (SHRT_MIN==-32768)
 BIRNET_STATIC_ASSERT (SHRT_MAX==+32767)
 BIRNET_STATIC_ASSERT (USHRT_MAX==+65535)
 BIRNET_STATIC_ASSERT (INT_MIN==-2147483647-1)
 BIRNET_STATIC_ASSERT (INT_MAX==+2147483647)
 BIRNET_STATIC_ASSERT (UINT_MAX==+4294967295U)
 BIRNET_STATIC_ASSERT (INT64_MIN==-9223372036854775807LL-1)
 BIRNET_STATIC_ASSERT (INT64_MAX==+9223372036854775807LL)
 BIRNET_STATIC_ASSERT (UINT64_MAX==+18446744073709551615LLU)
 BIRNET_STATIC_ASSERT (FLT_MIN<=1E-37)
 BIRNET_STATIC_ASSERT (FLT_MAX >=1E+37)
 BIRNET_STATIC_ASSERT (FLT_EPSILON<=1E-5)
 BIRNET_STARTUP_ASSERT (DBL_MIN<=1E-37)
 BIRNET_STARTUP_ASSERT (DBL_MAX >=1E+37)
 BIRNET_STARTUP_ASSERT (DBL_EPSILON<=1E-9)
 BIRNET_STATIC_ASSERT (LDBL_MIN<=1E-37)
 BIRNET_STATIC_ASSERT (LDBL_MAX >=1E+37)
 BIRNET_STATIC_ASSERT (LDBL_EPSILON<=1E-9)
void raise_sigtrap ()
void birnet_runtime_problem (char ewran_tag, const char *domain, const char *file, int line, const char *funcname, const char *msgformat,...)
void birnet_runtime_problemv (char ewran_tag, const char *domain, const char *file, int line, const char *funcname, const char *msgformat, va_list args)
String string_tolower (const String &str)
String string_toupper (const String &str)
String string_totitle (const String &str)
String string_printf (const char *format,...)
String string_vprintf (const char *format, va_list vargs)
String string_strip (const String &str)
bool string_to_bool (const String &string)
String string_from_bool (bool value)
uint64 string_to_uint (const String &string, uint base)
String string_from_uint (uint64 value)
bool string_has_int (const String &string)
int64 string_to_int (const String &string, uint base)
String string_from_int (int64 value)
double string_to_double (const String &string)
String string_from_float (float value)
String string_from_double (double value)
vector< double > string_to_vector (const String &string)
String string_from_vector (const vector< double > &dvec, const String &delim)
String string_from_errno (int errno_val)
bool string_is_uuid (const String &uuid_string)
int string_cmp_uuid (const String &uuid_string1, const String &uuid_string2)
bool url_test_show (const char *url)
void url_show (const char *url)
bool url_test_show_with_cookie (const char *url, const char *url_title, const char *cookie)
void url_show_with_cookie (const char *url, const char *url_title, const char *cookie)
void cleanup_force_handlers (void)
uint cleanup_add (guint timeout_ms, GDestroyNotify handler, void *data)
void memset4 (guint32 *mem, guint32 filler, guint length)
void * malloc_aligned (gsize total_size, gsize alignment, guint8 **free_pointer)
uint8 * zintern_decompress (unsigned int decompressed_size, const unsigned char *cdata, unsigned int cdata_size)
void zintern_free (uint8 *dc_data)
String string_from_float (double value)
double string_to_float (const String &string)
template<typename Type >
Type string_to_type (const String &string)
template<typename Type >
String string_from_type (Type value)
template<>
double string_to_type< double > (const String &string)
template<>
String string_from_type< double > (double value)
template<>
float string_to_type< float > (const String &string)
template<>
String string_from_type< float > (float value)
template<>
bool string_to_type< bool > (const String &string)
template<>
String string_from_type< bool > (bool value)
template<>
int16 string_to_type< int16 > (const String &string)
template<>
String string_from_type< int16 > (int16 value)
template<>
uint16 string_to_type< uint16 > (const String &string)
template<>
String string_from_type< uint16 > (uint16 value)
template<>
int string_to_type< int > (const String &string)
template<>
String string_from_type< int > (int value)
template<>
uint string_to_type< uint > (const String &string)
template<>
String string_from_type< uint > (uint value)
template<>
int64 string_to_type< int64 > (const String &string)
template<>
String string_from_type< int64 > (int64 value)
template<>
uint64 string_to_type< uint64 > (const String &string)
template<>
String string_from_type< uint64 > (uint64 value)
uint cleanup_add (uint timeout_ms, void(*destroy_data)(void *), void *data)
void memset4 (uint32 *mem, uint32 filler, uint length)
void * malloc_aligned (size_t total_size, size_t alignment, uint8 **free_pointer)
char * cxx_demangle (const char *mangled_identifier)

Variables

const int8 utf8_skip_table [256]

Detailed Description

Library with utility functions, carried forward in Rapicorn: http://dev.testbit.eu/rapicorn/latest/


Function Documentation

uint Birnet::cleanup_add ( guint  timeout_ms,
GDestroyNotify  handler,
void *  data 
)
Parameters:
timeout_mstimeout in milliseconds
handlercleanup handler to run
datacleanup handler data

Register a cleanup handler, the handler is guaranteed to be run asyncronously (i.e. not from within cleanup_add()). The cleanup handler will be called as soon as timeout_ms has elapsed or cleanup_force_handlers() is called.

Force all cleanup handlers (see birnet_cleanup_add()) to be immediately executed. This function should be called at program exit to execute cleanup handlers which have timeouts that have not yet expired.

uint8 * Birnet::zintern_decompress ( unsigned int  decompressed_size,
const unsigned char *  cdata,
unsigned int  cdata_size 
)
Parameters:
decompressed_sizeexact size of the decompressed data to be returned
cdatacompressed data block
cdata_sizeexact size of the compressed data block
Returns:
decompressed data block or NULL in low memory situations

Decompress the data from cdata of length cdata_size into a newly allocated block of size decompressed_size which is returned. The returned block needs to be freed with g_free(). This function is intended to decompress data which has been compressed with the birnet-zintern utility, so no errors should occour during decompression. Consequently, if any error occours during decompression or if the resulting data block is of a size other than decompressed_size, the program will abort with an appropriate error message. If not enough memory could be allocated for decompression, NULL is returned.


Variable Documentation

const int8 Birnet::utf8_skip_table
Initial value:
 {
  1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
  1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
  1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
  1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
  1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
  1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
  2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,
  3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,5,5,5,5,6,6,1,1
}
 All Classes Namespaces Files Functions Typedefs Defines