Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions public/usage-examples/utilities/hex_to_bin-1-example-oop.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
using SplashKitSDK;

public class Program
{
public static void Main()
{
string hexValue = "1F3A";
string binaryValue = SplashKit.HexToBin(hexValue); // SplashKit function

SplashKit.WriteLine("Hex: " + hexValue);
SplashKit.WriteLine("Binary: " + binaryValue);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
using SplashKitSDK;

string hexValue = "1F3A";
string binaryValue = SplashKit.HexToBin(hexValue); // SplashKit function

SplashKit.WriteLine("Hex: " + hexValue);
SplashKit.WriteLine("Binary: " + binaryValue);
13 changes: 13 additions & 0 deletions public/usage-examples/utilities/hex_to_bin-1-example.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#include "splashkit.h"

int main()
{
string hex_value = "1F3A";
string binary_value = hex_to_bin(hex_value); // SplashKit function

write_line("Hex: " + hex_value);
write_line("Binary: " + binary_value);

return 0;
}

7 changes: 7 additions & 0 deletions public/usage-examples/utilities/hex_to_bin-1-example.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
from splashkit import write_line, hex_to_bin

hex_value = "1F3A"
binary_value = hex_to_bin(hex_value) # SplashKit function

write_line("Hex: " + hex_value)
write_line("Binary: " + binary_value)
2 changes: 2 additions & 0 deletions public/usage-examples/utilities/hex_to_bin-1-example.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
This example demonstrates how to convert a hexadecimal string into a binary string
using SplashKit's built-in hex_to_bin / HexToBin function in Python, C++, and C#.