Home | History | Annotate | Download | only in Renderscript

Lines Matching refs:header

180   const rsinfo::Header *header;
209 // Header starts at the beginning of the file.
210 header = reinterpret_cast<const rsinfo::Header *>(data);
213 if (::memcmp(header->magic, RSINFO_MAGIC, sizeof(header->magic)) != 0) {
220 if (::memcmp(header->version,
222 sizeof((header->version)) != 0)) {
225 header->version);
230 if ((header->headerSize != sizeof(rsinfo::Header)) ||
231 (header->dependencyTable.itemSize != sizeof(rsinfo::DependencyTableItem)) ||
232 (header->pragmaList.itemSize != sizeof(rsinfo::PragmaItem)) ||
233 (header->objectSlotList.itemSize != sizeof(rsinfo::ObjectSlotItem)) ||
234 (header->exportVarNameList.itemSize != sizeof(rsinfo::ExportVarNameItem)) ||
235 (header->exportFuncNameList.itemSize != sizeof(rsinfo::ExportFuncNameItem)) ||
236 (header->exportForeachFuncList.itemSize != sizeof(rsinfo::ExportForeachFuncItem))) {
244 if (((header->headerSize + header->strPoolSize) > filesize) ||
245 (LIST_DATA_RANGE(header->dependencyTable) > filesize) ||
246 (LIST_DATA_RANGE(header->pragmaList) > filesize) ||
247 (LIST_DATA_RANGE(header->objectSlotList) > filesize) ||
248 (LIST_DATA_RANGE(header->exportVarNameList) > filesize) ||
249 (LIST_DATA_RANGE(header->exportFuncNameList) > filesize) ||
250 (LIST_DATA_RANGE(header->exportForeachFuncList) > filesize)) {
257 result = new (std::nothrow) RSInfo(header->strPoolSize);
266 // Copy the header.
267 ::memcpy(&result->mHeader, header, sizeof(rsinfo::Header));
269 if (header->strPoolSize > 0) {
270 // Copy the string pool. The string pool is immediately after the header at
271 // the offset header->headerSize.
283 (data, *result, header->dependencyTable, result->mDependencyTable)) {
293 (data, *result, header->pragmaList, result->mPragmas)) {
298 (data, *result, header->objectSlotList, result->mObjectSlots)) {
303 (data, *result, header->exportVarNameList, result->mExportVarNames)) {
308 (data, *result, header->exportFuncNameList, result->mExportFuncNames)) {
313 (data, *result, header->exportForeachFuncList, result->mExportForeachFuncs)) {