Lines Matching refs:scanBuf
173 char* scanBuf = (char*)malloc(footerSize); in parseObbFile() local
174 if (scanBuf == NULL) { in parseObbFile()
179 actual = TEMP_FAILURE_RETRY(read(fd, scanBuf, footerSize)); in parseObbFile()
183 free(scanBuf); in parseObbFile()
189 ALOGI("char: 0x%02x\n", scanBuf[i]); in parseObbFile()
193 uint32_t sigVersion = get4LE((unsigned char*)scanBuf); in parseObbFile()
196 free(scanBuf); in parseObbFile()
200 mVersion = (int32_t) get4LE((unsigned char*)scanBuf + kPackageVersionOffset); in parseObbFile()
201 mFlags = (int32_t) get4LE((unsigned char*)scanBuf + kFlagsOffset); in parseObbFile()
203 memcpy(&mSalt, (unsigned char*)scanBuf + kSaltOffset, sizeof(mSalt)); in parseObbFile()
205 size_t packageNameLen = get4LE((unsigned char*)scanBuf + kPackageNameLenOffset); in parseObbFile()
210 free(scanBuf); in parseObbFile()
214 char* packageName = reinterpret_cast<char*>(scanBuf + kPackageNameOffset); in parseObbFile()
217 free(scanBuf); in parseObbFile()