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

Update Base64 variable names for better readability #11299

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Joe-Abraham
Copy link
Contributor

Follow-up PR: #10371

The following changes are done in this PR.

  • Variable names are updated for better readability.
  • Function declarations in Base64.h are reordered for better maintainability.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Oct 18, 2024
Copy link

netlify bot commented Oct 18, 2024

Deploy Preview for meta-velox canceled.

Name Link
🔨 Latest commit b60b7a7
🔍 Latest deploy log https://app.netlify.com/sites/meta-velox/deploys/671311b5fc200d0008ea4c04

Copy link
Collaborator

@majetideepak majetideepak left a comment

Choose a reason for hiding this comment

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

@Joe-Abraham The header refactor seems to be missing some code comments.
Can you clarify? Thanks.

@@ -32,125 +29,100 @@ class Base64 {
static const size_t kCharsetSize = 64;
static const size_t kReverseIndexSize = 256;

/// Character set used for encoding purposes.
/// Contains specific characters that form the encoding scheme.
/// Character set used for Base64 encoding.
Copy link
Collaborator

Choose a reason for hiding this comment

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

@Joe-Abraham why remove /// Contains specific characters that form the encoding scheme.?

using Charset = std::array<char, kCharsetSize>;

/// Reverse lookup table for decoding purposes.
/// Maps each possible encoded character to its corresponding numeric value
/// within the encoding base.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why remove the other comments?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants