Skip to content
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

three-args contructor to SkMemoryStream not exposed. #194

Closed
HinTak opened this issue Jul 12, 2023 · 0 comments
Closed

three-args contructor to SkMemoryStream not exposed. #194

HinTak opened this issue Jul 12, 2023 · 0 comments

Comments

@HinTak
Copy link
Collaborator

HinTak commented Jul 12, 2023

Is your feature request related to a problem? Please describe.

You actually use the under-lying 3-argument ptr-len-bool constructor for MemorySream to process 2-arg buffer-bool inputs:

new SkMemoryStream(info.ptr, size, copyData));

I actually needs the raw 3-argument to process input with (non-null-terminated string, len, boolean)

Describe the solution you'd like

Expose the raw 3-arg method to take 3 arguments.

Describe alternatives you've considered

Currently I am using Data(ptr, len) to build a buffer in python first. But I found the raw 3-arg method when I was programming using c++ instead, then go back to check how the python method is bound.

Additional context
The input is just in two pieces, non-null-terminated pointer and length. It is more natural just to pass these along like in c++, instead of wrapping a Data(ptr, len) around it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant