Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Berry bytes add appendb64 #23008

Merged
merged 4 commits into from
Feb 15, 2025

Conversation

s-hadinger
Copy link
Collaborator

Description:

Add bytes().appendb64(to_be_encoded:bytes [, idx:int [, len:ind]]) -> bytes() to encode base64 and append to current bytes buffer. Optional index and len to encode only part of the buffer.

This is used to encode HTTP payloads in EventSource without allocating a new object at each message.

Checklist:

  • The pull request is done against the latest development branch
  • Only relevant files were touched
  • Only one feature/fix was added per PR and the code change compiles without warnings
  • The code change is tested and works with Tasmota core ESP8266 V.2.7.8
  • The code change is tested and works with Tasmota core ESP32 V.3.1.1.250203
  • I accept the CLA.

NOTE: The code change must pass CI tests. Your PR cannot be merged unless tests pass

Sorry, something went wrong.

Fix

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
@s-hadinger s-hadinger merged commit d805cef into arendst:development Feb 15, 2025
60 checks passed
@s-hadinger s-hadinger deleted the berry_bytes_add_appendb64 branch February 15, 2025 20:09
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant