Home
last modified time | relevance | path

Searched refs:scanBuf (Results 1 – 1 of 1) sorted by relevance

/frameworks/base/libs/androidfw/
DObbFile.cpp173 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()
[all …]