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

Adding a method to uncompress a gzipped std::string #420

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

jgalan
Copy link
Member

@jgalan jgalan commented May 17, 2023

jgalan Ok: 71

This is not used right now, but I found it might be potentially used, so it is perhaps good to have it in the list of TRestTools methods.

@jgalan jgalan requested review from lobis and juanangp May 31, 2023 10:29
@jgalan jgalan requested a review from a team November 29, 2023 10:35
@@ -129,6 +129,8 @@ class TRestTools {

static std::string POSTRequest(const std::string& url, const std::map<std::string, std::string>& keys);
static void ChangeDirectory(const std::string& toDirectory);

static bool GzipInflate(const std::string& compressedBytes, std::string& uncompressedBytes);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should avoid passing mutable references and instead use the method's return. One strong reason to avoid doing so is that these functions are much more difficult to call from the python bindings (it's possible but much more complicated as just passing python objects as strings and so on).

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

Successfully merging this pull request may close these issues.

None yet

3 participants