Skip to content

Conversation

@Mdanial01
Copy link

@Mdanial01 Mdanial01 commented Oct 13, 2025

Description

Please include a summary of the changes and the related issue. Please also include relevant
motivation and context. List any dependencies that are required for this change.

This PR adds a new SplashKit utility usage example demonstrating how to convert a
binary string into its hexadecimal representation using the built-in bin_to_hex (Python/C++)
and BinToHex (C#) functions. It includes multi-language examples for Python, C++,
and C# (both OOP and top-level). This example is minimal, clear, and demonstrates the
function in the least number of lines possible.

Usefulness: A SplashKit user may want to convert binary data (e.g., from low-level computations,
bitmaps, or binary protocols) into hexadecimal format for visualization, debugging, or data serialization.

Type of change

  • New feature (non-breaking change which adds functionality)
  • Documentation (update or new)
  • Bug fix (non-breaking change which fixes an issue)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

How Has This Been Tested?

  • Verified output in Python using SplashKit
  • Verified output in C++ using SplashKit
  • Verified output in C# (OOP and top-level) using SplashKit

Testing Checklist

  • Tested in latest Chrome
  • Tested in latest Firefox
  • 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
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings

Folders and Files Added/Modified

  • Added:
    • public/usage-examples/utilities/bin_to_hex-1-example.py
    • public/usage-examples/utilities/bin_to_hex-1-example.cpp
    • public/usage-examples/utilities/bin_to_hex-1-example-oop.cs
    • public/usage-examples/utilities/bin_to_hex-1-example-top-level.cs
    • public/usage-examples/utilities/bin_to_hex-1-example.txt

Additional Notes

This example demonstrates the use of SplashKit’s bin_to_hex / BinToHex functions across
multiple languages, providing a consistent, minimal, and easy-to-follow example for developers.
bin_to_hex

@netlify
Copy link

netlify bot commented Oct 13, 2025

Deploy Preview for splashkit ready!

Name Link
🔨 Latest commit a70cda0
🔍 Latest deploy log https://app.netlify.com/projects/splashkit/deploys/68ec4f4f1b216300086a7a3c
😎 Deploy Preview https://deploy-preview-671--splashkit.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

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.

1 participant