8000 Add Service / Client interface to C# and add samples by KerstinKeller · Pull Request #1043 · eclipse-ecal/ecal · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add Service / Client interface to C# and add samples #1043

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

Merged
merged 1 commit into from
Apr 6, 2023

Conversation

KerstinKeller
Copy link
Contributor
@KerstinKeller KerstinKeller commented Apr 4, 2023

This is the last C# PR, now adding services.

Please review regarding String / Byte[] usage in the API.

Copy link
Contributor
@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

clang-tidy made some suggestions

@@ -50,6 +50,12 @@ std::string ByteArrayToStlString(array<Byte>^ array_)
return(ret);
}

array<Byte>^ StlStringToByteArray(const std::string& string_)
Copy link
Contributor

Choose a reason for hiding this comment

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

warning: parameter 'string_' is unused [misc-unused-parameters]

Suggested change
array<Byte>^ StlStringToByteArray(const std::string& string_)
array<Byte>^ StlStringToByteArray(const std::string& /*string_*/)

@@ -50,6 +50,12 @@ std::string ByteArrayToStlString(array<Byte>^ array_)
return(ret);
}

array<Byte>^ StlStringToByteArray(const std::string& string_)
{
array<Byte>^ array_ = gcnew array<Byte>(string_.size());
Copy link
Contributor

Choose a reason for hiding this comment

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

warning: variable 'array_' is not initialized [cppcoreguidelines-init-variables]

Suggested change
array<Byte>^ array_ = gcnew array<Byte>(string_.size());
array<Byte>^ array_ = 0 = gcnew array<Byte>(string_.size());

@KerstinKeller KerstinKeller merged commit 8f72149 into master Apr 6, 2023
@KerstinKeller KerstinKeller deleted the feature/c#_services branch May 10, 2023 09:12
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.

2 participants
0