MCPcopy Create free account
hub / github.com/CyanogenMod/android_frameworks_base / editData

Method editData

tools/aapt/AaptAssets.cpp:1559–1574  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1557// =========================================================================
1558
1559void* AaptFile::editData(size_t size)
1560{
1561 if (size <= mBufferSize) {
1562 mDataSize = size;
1563 return mData;
1564 }
1565 size_t allocSize = (size*3)/2;
1566 void* buf = realloc(mData, allocSize);
1567 if (buf == NULL) {
1568 return NULL;
1569 }
1570 mData = buf;
1571 mDataSize = size;
1572 mBufferSize = allocSize;
1573 return buf;
1574}
1575
1576void* AaptFile::editData(size_t* outSize)
1577{

Callers 4

flattenMethod · 0.80
writeStringBlockMethod · 0.80
slurpResourceZipMethod · 0.80
flattenMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected