Home
last modified time | relevance | path

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

/dalvik/libdex/
DDexProto.cpp36 void dexStringCacheAlloc(DexStringCache* pCache, size_t length) { in dexStringCacheAlloc() argument
37 if (pCache->allocatedSize != 0) { in dexStringCacheAlloc()
38 if (pCache->allocatedSize >= length) { in dexStringCacheAlloc()
41 free((void*) pCache->value); in dexStringCacheAlloc()
44 if (length <= sizeof(pCache->buffer)) { in dexStringCacheAlloc()
45 pCache->value = pCache->buffer; in dexStringCacheAlloc()
46 pCache->allocatedSize = 0; in dexStringCacheAlloc()
48 pCache->value = (char*) malloc(length); in dexStringCacheAlloc()
49 pCache->allocatedSize = length; in dexStringCacheAlloc()
57 void dexStringCacheInit(DexStringCache* pCache) { in dexStringCacheInit() argument
[all …]
DDexProto.h43 void dexStringCacheAlloc(DexStringCache* pCache, size_t length);
49 void dexStringCacheInit(DexStringCache* pCache);
55 void dexStringCacheRelease(DexStringCache* pCache);
64 char* dexStringCacheEnsureCopy(DexStringCache* pCache, const char* value);
73 char* dexStringCacheAbandon(DexStringCache* pCache, const char* value);
104 DexStringCache* pCache);
118 DexStringCache* pCache);
124 const DexMethodId* pMethodId, DexStringCache* pCache) in dexGetDescriptorFromMethodId() argument
129 return dexProtoGetMethodDescriptor(&proto, pCache); in dexGetDescriptorFromMethodId()