Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while (true)
- {
- if (index == array.Length)
- {
- return deserializedOpt;
- }
- if (index > array.Length)
- {
- return null;
- }
- if (deserializedOpt == null)
- {
- break;
- }
- FSharpOption<FSharpList<Command>> val = deserializedOpt;
- FSharpList<Command> value = val.get_Value();
- switch (array[index])
- {
- default:
- return null;
- case 192:
- {
- FSharpOption<FSharpList<Command>> obj6 = FSharpOption<FSharpList<Command>>.Some(FSharpList<Command>.Cons(Command.Drop, value));
- int num13 = index + 1;
- array = array;
- index = num13;
- deserializedOpt = obj6;
- break;
- }
- case 154:
- {
- FSharpOption<FSharpList<Command>> obj3 = FSharpOption<FSharpList<Command>>.Some(FSharpList<Command>.Cons(Command.Print, value));
- int num3 = index + 1;
- array = array;
- index = num3;
- deserializedOpt = obj3;
- break;
- }
- case 146:
- {
- FSharpOption<FSharpList<Command>> obj7 = FSharpOption<FSharpList<Command>>.Some(FSharpList<Command>.Cons(Command.Add, value));
- int num14 = index + 1;
- array = array;
- index = num14;
- deserializedOpt = obj7;
- break;
- }
- case 123:
- {
- FSharpOption<FSharpList<Command>> obj4 = FSharpOption<FSharpList<Command>>.Some(FSharpList<Command>.Cons(Command.Concat, value));
- int num4 = index + 1;
- array = array;
- index = num4;
- deserializedOpt = obj4;
- break;
- }
- case 105:
- {
- FSharpOption<int> val2 = tryFindIndexSince(index + 1, new terminationIndex@66(), array);
- if (val2 == null)
- {
- return null;
- }
- FSharpOption<int> val3 = val2;
- int value2 = val3.get_Value();
- Encoding aSCII = Encoding.ASCII;
- int num5 = index + 1;
- int num6 = value2 - 1;
- int num7 = array.Length;
- int num8 = num6 - num5 + 1;
- int num9 = (num8 >= 0) ? num8 : 0;
- byte[] array2 = new byte[num9];
- Encoding encoding = aSCII;
- int num10 = 0;
- int num11 = num9 - 1;
- if (num11 >= num10)
- {
- do
- {
- array2[num10] = array[num5 + num10];
- num10++;
- }
- while (num10 != num11 + 1);
- }
- string @string = encoding.GetString(array2);
- Command command = Command.NewLoadString(@string);
- FSharpOption<FSharpList<Command>> obj5 = FSharpOption<FSharpList<Command>>.Some(FSharpList<Command>.Cons(command, value));
- int num12 = value2 + 1;
- array = array;
- index = num12;
- deserializedOpt = obj5;
- break;
- }
- case 101:
- {
- if (index + 4 >= array.Length)
- {
- return null;
- }
- Command command = Command.NewLoadInt(BitConverter.ToInt32(array, index + 1));
- FSharpOption<FSharpList<Command>> obj2 = FSharpOption<FSharpList<Command>>.Some(FSharpList<Command>.Cons(command, value));
- int num2 = index + 5;
- array = array;
- index = num2;
- deserializedOpt = obj2;
- break;
- }
- case 11:
- {
- FSharpOption<FSharpList<Command>> obj = FSharpOption<FSharpList<Command>>.Some(FSharpList<Command>.Cons(Command.Return, value));
- int num = index + 1;
- array = array;
- index = num;
- deserializedOpt = obj;
- break;
- }
- }
- }
- return null;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement