Ejemplo n.º 1
0
/*
 * Read some bytes.
 *
 * n : number of bytes to read
 *
 * return : value of the n bytes read
 */
unsigned int OPJ_CALLCONV cio_read(opj_cio_t *cio, int n) {
	int i;
	unsigned int v;
	v = 0;
	for (i = n - 1; i >= 0; i--) {
		v += cio_bytein(cio) << (i << 3);
	}
	return v;
}
Ejemplo n.º 2
0
/// <summary>
/// Read some bytes.
/// </summary>
unsigned int cio_read(int n) {
    int i;
    unsigned int v;
    v=0;
    for (i=n-1; i>=0; i--) {
        v+=cio_bytein()<<(i<<3);
    }
    return v;
}