9 ms·
https://android.googlesource.com/platform/external/qemu/+/emu-master-dev/android/android-emu/android/base/SubAllocator.h https://android.googlesource.com/platfo
by lfy_google 8y ago
https://android.googlesource.com/platform/external/qemu/+/emu-master-dev/android/android-emu/android/base/SubAllocator.h https://android.googlesource.com/platform/external/qemu/+/em...
https://android.googlesource.com/platform/external/qemu/+/emu-master-dev/android/android-emu/android/base/SubAllocator.cpp https://android.googlesource.com/platform/external/qemu/+/em...
https://android.googlesource.com/platform/external/qemu/+/emu-master-dev/android/android-emu/android/base/address_space.h https://android.googlesource.com/platform/external/qemu/+/em...
These 3 files should be a fairly self contained, minimal way to allocate into existing buffers. No attempt is made at thread safety though (we assume the user synchronizes that themselves)