Terraria
v1.4.4.9
Terraria source code documentation
Toggle main menu visibility
Main Page
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Functions
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
x
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Properties
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Events
_
a
c
d
e
f
i
l
m
o
p
r
s
t
u
w
Files
File List
File Members
All
Enumerations
Macros
•
All
Classes
Namespaces
Files
Functions
Variables
Enumerations
Enumerator
Properties
Events
Macros
Loading...
Searching...
No Matches
◆
UserName
string
System.Environment.UserName
static
get
Definition at line
248
of file
Environment.cs
.
249
{
250
get
251
{
252
Span<char> initialBuffer = stackalloc
char
[40];
253
ValueStringBuilder
builder =
new
ValueStringBuilder
(initialBuffer);
254
GetUserName
(ref builder);
255
ReadOnlySpan<char> span = builder.
AsSpan
();
256
int
num = span.IndexOf(
'\\'
);
257
if
(num != -1)
258
{
259
span = span.
Slice
(num + 1);
260
}
261
string
result = span.ToString();
262
builder.
Dispose
();
263
return
result;
264
}
265
}
System.Environment.GetUserName
static void GetUserName(ref ValueStringBuilder builder)
Definition
Environment.cs:636
System.ReadOnlySpan.Slice
ReadOnlySpan< T > Slice(int start)
Definition
ReadOnlySpan.cs:232
System.Text.ValueStringBuilder.Dispose
void Dispose()
Definition
ValueStringBuilder.cs:68
System.Text.ValueStringBuilder.AsSpan
ReadOnlySpan< char > AsSpan(bool terminate)
Definition
ValueStringBuilder.cs:306
System.Text.ValueStringBuilder
Definition
ValueStringBuilder.cs:10
System
Environment
Generated by
1.10.0