search for: convertarray2

Displaying 1 result from an estimated 1 matches for "convertarray2".

2003 Jun 13
2
Trouble decoding number of codebooks
...ong :) Anyway this is how I read in the numbers : void readCodeBooks(ifstream *file, int codebookCount) { //read in the 24 bit sync pattern unsigned char *c = readBytes(file, 3); //read the codebook dimensions unsigned char *dimensions = readBytes(file,2); int codebookDimensions = (int)convertArray2(dimensions, 2); //read codebook entries unsigned char *entries = readBytes(file,3); long codebookEntries = convertArray2(entries,3); } long convertArray2(unsigned char *array, int size) { //reverse the array unsigned char revArray[size]; for(int i = size - 1; i >= 0; i--) revAr...