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

fix: zero copy length calculate error #70

Merged
merged 1 commit into from
Dec 2, 2022

Conversation

PureWhiteWu
Copy link
Member

No description provided.

@PureWhiteWu PureWhiteWu self-assigned this Dec 2, 2022
@PureWhiteWu PureWhiteWu merged commit 9094e68 into cloudwego:main Dec 2, 2022
@PureWhiteWu PureWhiteWu deleted the fix/length_error branch December 2, 2022 12:17
self.write_i32_len(0) + self.write_string_len(&identifier.name) + self.write_i32_len(0)
}

#[inline]
fn write_message_end_len(&self) -> usize {
Copy link
Member

@ethe ethe Dec 2, 2022

Choose a reason for hiding this comment

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

it is really weird because it does not use mutable reference in below.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants