Home | History | Annotate | Download | only in libdex

Lines Matching full:value

41         free((void*) pCache->value);
45 pCache->value = pCache->buffer;
48 pCache->value = malloc(length);
58 pCache->value = pCache->buffer;
69 free((void*) pCache->value);
70 pCache->value = pCache->buffer;
76 * If the given DexStringCache doesn't already point at the given value,
82 char* dexStringCacheEnsureCopy(DexStringCache* pCache, const char* value) {
83 if (value != pCache->value) {
84 size_t length = strlen(value) + 1;
86 memcpy(pCache->value, value, length);
89 return pCache->value;
94 * given value (reusing the string cache's allocation if possible).
95 * The return value must be free()d by the caller. Use this instead of
99 char* dexStringCacheAbandon(DexStringCache* pCache, const char* value) {
100 if ((value == pCache->value) && (pCache->allocatedSize != 0)) {
101 char* result = pCache->value;
103 pCache->value = pCache->buffer;
106 return strdup(value);
156 char *at = (char*) pCache->value;
169 return pCache->value;
208 char *at = (char*) pCache->value;
220 return pCache->value;