Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
◆
TryWriteBytes()
[11/11]
static
bool
System.BitConverter.TryWriteBytes
(
Span
< byte >
destination
,
ushort
value
)
inline
static
Definition at line
106
of file
BitConverter.cs
.
107
{
108
if
(
destination
.Length < 2)
109
{
110
return
false
;
111
}
112
Unsafe
.WriteUnaligned(ref
MemoryMarshal
.GetReference(
destination
),
value
);
113
return
true
;
114
}
Internal.Runtime.CompilerServices.Unsafe
Definition
Unsafe.cs:10
System.Runtime.InteropServices.MemoryMarshal
Definition
MemoryMarshal.cs:11
System.ExceptionArgument.value
@ value
System.ExceptionArgument.destination
@ destination
References
System.destination
, and
System.value
.
System
BitConverter
Generated by
1.10.0