allocWith static method
Opt-in external allocation. freeWith must use the same allocator in the same isolate; free remains the system-allocator path.
Implementation
static UnsafeBytes allocWith(UnsafeAllocator allocator, int length) =>
UnsafeBytes._(allocator.alloc(length));