@param preferDirect {@code true} if {@link #buffer(int)} should try to allocate a direct buffer rather than
a heap buffer
@param disableLeakDetector {@code true} if the leak-detection should be disabled completely for this
allocator. This can be useful if the user just want to depend on the GC to handle
direct buffers when not explicit released.
Create a new instance
@param preferDirect {@code true} if {@link #buffer(int)} should try to allocate a direct buffer rather than a heap buffer @param disableLeakDetector {@code true} if the leak-detection should be disabled completely for this allocator. This can be useful if the user just want to depend on the GC to handle direct buffers when not explicit released.