-
-
Notifications
You must be signed in to change notification settings - Fork 671
Refactor ArrayBufferView #865
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
Refactor ArrayBufferView #865
Conversation
LGTM :) Might be a good opportunity to also think about the |
I guess better leave old name for |
There is a chance that removing |
Yeah. We could add something like: class ArrayBufferView {
...
@unsafe readonly rawBuffer: usize;
...
@inline function dataStart(): usize {
WARNING("dataStart was deprecated. Please use 'rawBuffer' instead");
return this.rawBuffer;
}
} |
@dcodeIO what about |
Thinking about it a little more, it's "the unsafe pointer to the start of the data in the backing buffer", so |
Thanks! |
No description provided.