search for: sometype_t

Displaying 2 results from an estimated 2 matches for "sometype_t".

Did you mean: sometype
2015 Oct 07
0
Are pointers to FLAC__int32 and int interchangeable?
..._int32* in a function that expects int* ? Well FLAC__int32 is just a 32 bit integer and on all the platforms/ architecures/compilers that FLAC supports FLAC__int32 and int are the same. As for pointers, all pointers are the same until you try an increment them. If you have some type, lets call it sometype_t, and a pointer to types of sometype_t : sometype_t * ptr = 0 ; and you then increment it using ptr ++ ; The next address that the pointer points to is calculated using: ptr = (sometype_t *) ((char*) ptr) + 1) ; where incrementing a char* pointer increases the address b...
2015 Oct 07
2
Are pointers to FLAC__int32 and int interchangeable?
There are following functions in bitreader.c: FLAC__bool FLAC__bitreader_read_unary_unsigned(FLAC__BitReader *br, unsigned *val); FLAC__bool FLAC__bitreader_read_rice_signed(FLAC__BitReader *br, int *val, unsigned parameter); FLAC__bool FLAC__bitreader_read_rice_signed_block(FLAC__BitReader *br, int vals[], unsigned nvals, unsigned parameter); * function FLAC__bitreader_read_rice_signed():