Add Base64 Encode usage example for SplashKit utilities #668
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This pull request adds a new usage example demonstrating the base64_encode function from SplashKit’s Utilities module.
It shows how to convert a plain string (e.g., "Hello SplashKit") into Base64. This is useful for data serialization, secure text transmission, and storage workflows.
All five language examples are included, along with a text description.
Type of change
New feature (non-breaking change which adds functionality)
Bug fix (non-breaking change which fixes an issue)
Breaking change (fix or feature that would cause existing functionality to not work as expected)
Documentation (update or new)
How Has This Been Tested?
Each example file has been manually run in its respective environment to verify that the input string "Hello SplashKit" produces the correct Base64 output ("SGVsbG8gU3BsYXNoS2l0").
Verified that all five example files are included and follow SplashKit naming conventions.
No additional dependencies are required beyond SplashKit.
Testing Checklist
Tested in latest C++ environment
Tested in latest Python environment
Tested in latest C# environment
npm run build
npm run preview
Checklist
If involving code
My code follows the style guidelines of this project
I have performed a self-review of my own code
I have commented my code in hard-to-understand areas (where needed)
I have made corresponding changes to the documentation
My changes generate no new warnings
If modified config files
I have checked the following files for changes:
package.json
astro.config.mjs
netlify.toml
docker-compose.yml
custom.css
Folders and Files Added/Modified
Added:
public/usage-examples/utilities/base64_encode-1-example.cpp
public/usage-examples/utilities/base64_encode-1-example.py
public/usage-examples/utilities/base64_encode-1-example-oop.cs
public/usage-examples/utilities/base64_encode-1-example-top-level.cs
public/usage-examples/utilities/base64_encode-1-example.txt
Modified:
None
Additional Notes
This example is designed to be simple and concise to demonstrate Base64 encoding clearly across multiple languages.
Metadata for the usage example has been included following SplashKit style.
Ready for peer review according to SplashKit usage example guidelines.