Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
◆
GetName()
static
ReadOnlySpan
< char > Interop.Advapi32.PERF_INSTANCE_DEFINITION.GetName
(
in
PERF_INSTANCE_DEFINITION
instance
,
ReadOnlySpan
< byte >
data
)
inline
static
package
Definition at line
534
of file
Interop.cs
.
535
{
536
if
(instance.NameLength != 0)
537
{
538
return
MemoryMarshal
.Cast<byte,
char
>(data.
Slice
(instance.NameOffset, instance.NameLength - 2));
539
}
540
return
default
(
ReadOnlySpan<char>
);
541
}
System.Runtime.InteropServices.MemoryMarshal
Definition
MemoryMarshal.cs:11
System.ReadOnlySpan.Slice
ReadOnlySpan< T > Slice(int start)
Definition
ReadOnlySpan.cs:232
System.ReadOnlySpan
Definition
ReadOnlySpan.cs:14
References
System.ReadOnlySpan< T >.Slice()
.
Interop
Advapi32
PERF_INSTANCE_DEFINITION
Generated by
1.10.0