Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
ArrayShapeEncoder.cs
Go to the documentation of this file.
2
4
5public readonly struct ArrayShapeEncoder
6{
7 public BlobBuilder Builder { get; }
8
10 {
11 Builder = builder;
12 }
13
15 {
16 if ((uint)(rank - 1) > 65534u)
17 {
19 }
20 if (sizes.IsDefault)
21 {
22 Throw.ArgumentNull("sizes");
23 }
25 if (sizes.Length > rank)
26 {
28 }
30 ImmutableArray<int>.Enumerator enumerator = sizes.GetEnumerator();
31 while (enumerator.MoveNext())
32 {
33 int current = enumerator.Current;
35 }
36 if (lowerBounds.IsDefault)
37 {
39 for (int i = 0; i < rank; i++)
40 {
42 }
43 return;
44 }
45 if (lowerBounds.Length > rank)
46 {
48 }
50 ImmutableArray<int>.Enumerator enumerator2 = lowerBounds.GetEnumerator();
51 while (enumerator2.MoveNext())
52 {
53 int current2 = enumerator2.Current;
55 }
56 }
57}
static void ArgumentNull(string parameterName)
Definition Throw.cs:110
static void ArgumentOutOfRange(string parameterName)
Definition Throw.cs:145
void Shape(int rank, ImmutableArray< int > sizes, ImmutableArray< int > lowerBounds)