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

readFile for ShortByteString? #540

Open
oberblastmeister opened this issue Aug 14, 2022 · 3 comments
Open

readFile for ShortByteString? #540

oberblastmeister opened this issue Aug 14, 2022 · 3 comments

Comments

@oberblastmeister
Copy link

I think we just need to create a pinned byte array. This would allow conversion to Text without copying when reading from a file

@Bodigrim
Copy link
Contributor

Why would we create it pinned? Text does not require its storage to be pinned.

@oberblastmeister
Copy link
Author

Because hGetBuf needs a Ptr?

@Bodigrim
Copy link
Contributor

Right, makes sense.

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

No branches or pull requests

3 participants