Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
◆
ToBytesBuffer()
[3/3]
static void System.HexConverter.ToBytesBuffer
(
byte
value
,
Span
< byte >
buffer
,
int
startingIndex
=
0
,
Casing
casing
=
Casing::Upper
)
inline
static
Definition at line
14
of file
HexConverter.cs
.
15
{
16
uint num = (uint)(((
value
& 0xF0) << 4) + (
value
& 0xF) - 35209);
17
uint num2 = ((((0 - num) & 0x7070) >> 4) + num + 47545) | (uint)casing;
18
buffer
[startingIndex + 1] = (byte)num2;
19
buffer
[startingIndex] = (byte)(num2 >> 8);
20
}
System.ExceptionArgument.value
@ value
System.ExceptionArgument.buffer
@ buffer
References
System.buffer
, and
System.value
.
System
HexConverter
Generated by
1.10.0