open method
Implementation
void open(String path) {
final p = path.toNativeUtf8();
try {
_handle = _open(p);
} finally {
malloc.free(p);
}
if (_handle == 0) {
throw Exception(lastError());
}
}
void open(String path) {
final p = path.toNativeUtf8();
try {
_handle = _open(p);
} finally {
malloc.free(p);
}
if (_handle == 0) {
throw Exception(lastError());
}
}