native icon indicating copy to clipboard operation
native copied to clipboard

[dartdoc] The Dartdoc does not show `MallocAllocator` and `CallocAllocator`

Open dcharkes opened this issue 2 years ago • 1 comments
trafficstars

The Dartdoc does not show MallocAllocator and CallocAllocator.

https://pub.dev/documentation/ffi/latest/ffi/calloc-constant.html

This is because we're not exporting these classes.

https://github.com/dart-lang/ffi/blob/c926657618443ff4821411ede01684096b503f84/lib/ffi.dart#L5C50-L5C50

Thanks @tvolkert for reporting!

dcharkes avatar Nov 07 '23 17:11 dcharkes

I believe we don't want to expose those classes. Instead the field should should be exposed on Allocator:

  • https://github.com/dart-lang/sdk/issues/55571

Unless, we want to communicate that the nativeFree is non-nullable for these two allocators.

dcharkes avatar Aug 08 '24 14:08 dcharkes