Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
objeck committed Feb 26, 2024
1 parent 5d1b9c2 commit 683afa5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions core/compiler/lib_src/lang.obs
Original file line number Diff line number Diff line change
Expand Up @@ -510,16 +510,16 @@ bundle System {
@return hexadecimal string representation of the value
~#
function : native : ToHexString(b : Byte) ~ String {
buffer := Char->New[64 * 8];
Number->IntToString(b->As(Int), 64 * 8 + 1, buffer);
buffer := Char->New[64 * 4 + 2];
Number->IntToString(b->As(Int), 64 * 4 + 1, buffer);
return String->New(buffer, false);
}

function : native : ToHexString(b : Byte[]) ~ String {
out := String->New();
each(i : b) {
buffer := Char->New[128];
Number->IntToString(b[i]->As(Int), 64 * 8 + 1, buffer);
buffer := Char->New[64 * 4 + 2];
Number->IntToString(b[i]->As(Int), 64 * 4 + 1, buffer);
out->Append(buffer);
};

Expand Down
Binary file modified docs/api.zip
Binary file not shown.

0 comments on commit 683afa5

Please sign in to comment.