We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
SourceAccessor::readFile
Describe the bug
This reads a whole file into memory.
void SourceAccessor::readFile( const CanonPath & path, Sink & sink, std::function<void(uint64_t)> sizeCallback) { std::string s = readFile(path); sizeCallback(s.size()); sink(s); }
Expected behavior
Multiple sink(chunk) calls.
sink(chunk)
nix-env --version output
nix-env --version
Additional context
Priorities
Add 👍 to issues you find important.
The text was updated successfully, but these errors were encountered:
Ideally it would be zero-copy too. Is there a cross-platform way of doing this?
Sorry, something went wrong.
No branches or pull requests
Describe the bug
This reads a whole file into memory.
Steps To Reproduce
Expected behavior
Multiple
sink(chunk)
calls.nix-env --version
outputAdditional context
Priorities
Add 👍 to issues you find important.
The text was updated successfully, but these errors were encountered: