stdin property
set
stdin
(String line)
The standard input sink.
Implementation
set stdin(String line) {
final stateValue = _state.value;
if (stateValue != Lc0State.ready) {
throw StateError('Lc0 is not ready ($stateValue)');
}
final pointer = '$line\n'.toNativeUtf8();
nativeStdinWrite(pointer);
calloc.free(pointer);
}