dart-lang / dart-lang/native

Individually mark struct type as opaque.

Open
#465 8 comments 1 reaction 0 assignees View on GitHub
package:ffigen
Dominant language
Dart
Stars
275
Forks
144
Avg merge
2d 10h
Merged PRs (30d)
47

Description

`dependency-only: opaque` is useful.

But I have some edge cases where I actually want some structs which are only exposed as pointers, but not others. I am just generating all of them now.

This is not a big problem tbh. But from code size perspective, would be nice to mark a struct manually as opaque.

I have also considered just adding a function which returns the struct (not-pointer). But it gets unweildy if you only want few structs as opaque.

I don't know if this a common problem or unique to my use case.

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.