summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Eric Miao <ericymiao@google.com> 2022-09-12 11:37:37 -0700
committer Eric Miao <ericymiao@google.com> 2022-11-15 12:15:38 -0800
commita1f2bce0e56185d8a3ddbbb75cf9daacdcb5a3d2 (patch)
tree3df57d49a29da88522a45388cb9aaecabada23bd /libs/androidfw/StringPool.cpp
parent368cd19d031f5a0b219ea92531d11ccb0ee66c4d (diff)
androidfw: Add support for 16-bit entry offsets
Bug: 237583012 Most offsets to the entries can be well encoded in 16-bit, and given entries are 4-byte aligned, this gives us a range of entry offsets from 0x00000 to 0xfffe * 4u, with 0xffffu to represent ResTable_type::NO_ENTRY. For now, 16-bit entry offset will be enabled only when: * all the entry offsets can be represented in 16-bit * --enable-compact-entries switch is turned on Change-Id: I1c815c052aa5fba6eab2529434d31d7714c13694
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions