From 0c9d2efd0e09b7e207074267e111a2c49f21175c Mon Sep 17 00:00:00 2001 From: Charles Iliya Krempeaux Date: Fri, 27 Oct 2023 10:56:38 -0700 Subject: [PATCH] initial commits --- README.md | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/README.md b/README.md index 17286f3..5af8338 100644 --- a/README.md +++ b/README.md @@ -28,6 +28,36 @@ mostSignificant, leastSignificant := hexadeca.EncodeByteUsingLowerCaseSymbols(va mostSignificant, leastSignificant := hexadeca.EncodeByteUsingUpperCaseSymbols(value) ``` +A couple examples of encoding a `uint16` to hexidecimal. + +```go +import "sourceccode.social/reiver/go-hexadeca" + +// ... + +r3, r2, r1, r0 = hexadeca.EncodeUint16UsingLowerCaseSymbols(value) + +// ... + +r3, r2, r1, r0 = hexadeca.EncodeUint16UsingLUpperCaseSymbols(value) +``` + + +A couple examples of encoding a `uint32` to hexidecimal. + +```go +import "sourceccode.social/reiver/go-hexadeca" + +// ... + +r7, r6, r5, r4, r3, r2, r1, r0 = hexadeca.EncodeUint32UsingLowerCaseSymbols(value) + +// ... + +r7, r6, r5, r4, r3, r2, r1, r0 = hexadeca.EncodeUint32UsingLUpperCaseSymbols(value) +``` + + A couple examples of encoding a `uint64` to hexidecimal. ```go