bytestring icon indicating copy to clipboard operation
bytestring copied to clipboard

readFile for ShortByteString?

Open oberblastmeister opened this issue 2 years ago • 3 comments

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

oberblastmeister avatar Aug 14 '22 02:08 oberblastmeister

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

Bodigrim avatar Aug 14 '22 17:08 Bodigrim

Because hGetBuf needs a Ptr?

oberblastmeister avatar Aug 14 '22 18:08 oberblastmeister

Right, makes sense.

Bodigrim avatar Aug 14 '22 20:08 Bodigrim