Skip to content

Provide additional method for Base64::encode.#457

Merged
RomanDzhabarov merged 9 commits intomasterfrom
encode_string
Feb 13, 2017
Merged

Provide additional method for Base64::encode.#457
RomanDzhabarov merged 9 commits intomasterfrom
encode_string

Conversation

@RomanDzhabarov
Copy link
Copy Markdown
Member

No description provided.

/**
* Helper methods for encoding.
*/
static inline void encode_base(const uint8_t cur_char, uint64_t pos, uint8_t& next_c,
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

del inline here and below

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

encodeBase and encodeLast

/**
* Base64 encode an input string.
* @param input string to encode.
*/
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

make this take a const char* and a length, so it's usable outside of a string.


private:
/**
* Helper methods for encoding.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

nit: method

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

fixed

* Helper methods for encoding.
*/
static void encodeBase(const uint8_t cur_char, uint64_t pos, uint8_t& next_c, std::string& ret);
/**
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

nit: newline before this line

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

fixed

/**
* Helper methods for encoding.
*/
static void encodeBase(const uint8_t cur_char, uint64_t pos, uint8_t& next_c, std::string& ret);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

nit: What does this method do? (you have comment for encodeLast, but none for encodeBase)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

fixed

@RomanDzhabarov RomanDzhabarov merged commit 1a6e4a6 into master Feb 13, 2017
@RomanDzhabarov RomanDzhabarov deleted the encode_string branch February 13, 2017 20:06
rshriram pushed a commit to rshriram/envoy that referenced this pull request Oct 30, 2018
jplevyak pushed a commit to jplevyak/envoy that referenced this pull request Apr 13, 2020
Signed-off-by: Piotr Sikora <piotrsikora@google.com>
wolfguoliang pushed a commit to wolfguoliang/envoy that referenced this pull request Jan 23, 2021
…agement.rst (envoyproxy#457)

* finish http conn mgmt.

* typo.

* fix warning.

* fix review suggest.

* fix build error.

* add http event trans.
jpsim pushed a commit that referenced this pull request Nov 28, 2022
Description: Addresses crashes from locally-generated responses in Envoy leading to inconsistent stream state. A better fix will require an upstream change. Additionally, this adds a mechanism to map local error responses into error callbacks. This path could also be greatly improved with upstream changes.
Risk Level: Low
Testing: CI and local

Signed-off-by: Jose Nino <jnino@lyft.com>
Co-authored-by: Mike Schore <mike.schore@gmail.com>
Signed-off-by: JP Simard <jp@jpsim.com>
jpsim pushed a commit that referenced this pull request Nov 29, 2022
Description: Addresses crashes from locally-generated responses in Envoy leading to inconsistent stream state. A better fix will require an upstream change. Additionally, this adds a mechanism to map local error responses into error callbacks. This path could also be greatly improved with upstream changes.
Risk Level: Low
Testing: CI and local

Signed-off-by: Jose Nino <jnino@lyft.com>
Co-authored-by: Mike Schore <mike.schore@gmail.com>
Signed-off-by: JP Simard <jp@jpsim.com>
mathetake added a commit that referenced this pull request Mar 3, 2026
**Commit Message**

This upgrades Go version to 1.24.1 as well as the direct dependencies.

---------

Signed-off-by: Takeshi Yoneda <t.y.mathetake@gmail.com>
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.

3 participants