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

NIOFileSystem: missing String(contentsOf:maximumSizeAllowed:) #3010

Open
weissi opened this issue Dec 1, 2024 · 1 comment
Open

NIOFileSystem: missing String(contentsOf:maximumSizeAllowed:) #3010

weissi opened this issue Dec 1, 2024 · 1 comment

Comments

@weissi
Copy link
Member

weissi commented Dec 1, 2024

Expected behavior

        let string = try await String(
            contentsOf: "/etc/hosts",
            maximumSizeAllowed: .mebibytes(12)
        )

should work.

Actual behavior

API not available

@ali-ahsan-ali
Copy link
Contributor

ali-ahsan-ali commented Dec 8, 2024

Taking a look 👍🏽. Does this need triaging first, as in do the CODEOWNERS need to approve this API should exist?

EDIT: Any pointers on starting. At first I thought we could re-use the same Array API since the result is a ByteBuffer that can then be turned into a String, but I wonder if there is something else that is the intended solution.

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

2 participants