karray supports custom allocator