-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Interface abstraction #28
base: main
Are you sure you want to change the base?
Interface abstraction #28
Conversation
Key changes of this pull request so far:
|
Why did you replaced SaneHandle with a simple int? I prefer the class encapsulation of that concept. |
558a0d7
to
bd6eb2b
Compare
72364d3
to
40d1495
Compare
40d1495
to
cd76013
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Little nitpicks :)
Sorry for the delay, I was too busy...
Uint8List read({required int bufferSize}) { | ||
_checkIfDisposed(); | ||
|
||
final handle = _handle ??= _open(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe create a _handleOrOpen
method/getter?
@Deprecated('Use extension') | ||
SANE_String_Const saneStringFromDartString(String string) { | ||
return string.toNativeUtf8().cast<SANE_Char>(); | ||
return string.toSaneString(); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This can be removed, we don't need backward compatibility yet. And anyway, this shouldn't be exported :)
Resolves #18
Resolves #23