LiteRtLayoutView.calloc constructor
LiteRtLayoutView.calloc()
Allocate a layout in the right ABI for the current platform. Free with free.
Implementation
factory LiteRtLayoutView.calloc() {
if (Platform.isWindows) {
return LiteRtLayoutView._(nullptr, calloc<LiteRtLayoutMsvc>());
}
return LiteRtLayoutView._(calloc<LiteRtLayoutPosix>(), nullptr);
}