`Pointer<Utf8>` and `Pointer<Utf16>` should be allocatable
Open
package:ffi
- Dominant language
- Dart
- Stars
- 275
- Forks
- 144
- Avg merge
- 2d 10h
- Merged PRs (30d)
- 47
Description
If I have a string which I know fits in exactly `n` UTF-8 code units, I should be able to do `allocator(n)`. This is currently not possible and requires doing `allocator(n).cast()`.
Contributor guide
Assessment
This issue has not been assessed yet.