Skip to content

Commit 8f7503b

Browse files
committed
[unitytls] Commented on UInt8/Int8 aliases
1 parent 1165e17 commit 8f7503b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

mcs/class/System/Mono.UnityTls/UnityTls.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44

55
namespace Mono.Unity
66
{
7+
// Unitytls uses UInt8 to denote raw buffers and Int8/char for strings.
8+
// Since we need to funnel all in- and outgoing strings through Encoding.UTF8 it is easier to let the Int8 alias point to Byte instead of SByte.
9+
// The aliases here are just there to keep the semantic in the interface and make it more similar to the c original.
710
using UInt8 = Byte;
811
using Int8 = Byte;
912

0 commit comments

Comments
 (0)