2 * Copyright (C) 2010 The Android Open Source Project
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
18 * Functions to parse and manipulate the additional data tables added
19 * to optimized .dex files.
22 #ifndef _LIBDEX_DEXOPTDATA
23 #define _LIBDEX_DEXOPTDATA
26 #include "libdex/DexFile.h"
29 * Parse the optimized data tables in the given dex file.
31 * @param data pointer to the start of the entire dex file
32 * @param length length of the entire dex file, in bytes
33 * @param pDexFile pointer to the associated dex file structure
35 bool dexParseOptData(const u1* data, size_t length, DexFile* pDexFile);
38 * Compute the checksum of the optimized data tables pointed at by the given
41 u4 dexComputeOptChecksum(const DexOptHeader* pOptHeader);
43 #endif /* def _LIBDEX_DEXOPTDATA */