dart-lang / dart-lang/native

`Pointer<Utf8>` and `Pointer<Utf16>` should be allocatable

Open
#932 3 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.