scripts
This commit is contained in:
@@ -0,0 +1,135 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Tsp;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Tsp
|
||||
{
|
||||
// Token: 0x02001387 RID: 4999
|
||||
[Token(Token = "0x2001387")]
|
||||
[StructLayout(3)]
|
||||
public class GenTimeAccuracy
|
||||
{
|
||||
// Token: 0x06007EA4 RID: 32420 RVA: 0x001A82F4 File Offset: 0x001A64F4
|
||||
[Token(Token = "0x6007EA4")]
|
||||
[Address(RVA = "0x3C3A30", Offset = "0x3C2430", VA = "0x1803C3A30")]
|
||||
public GenTimeAccuracy(Accuracy accuracy)
|
||||
{
|
||||
this.accuracy = accuracy;
|
||||
}
|
||||
|
||||
// Token: 0x170014B4 RID: 5300
|
||||
// (get) Token: 0x06007EA5 RID: 32421 RVA: 0x001A8310 File Offset: 0x001A6510
|
||||
[Token(Token = "0x170014B4")]
|
||||
public int Seconds
|
||||
{
|
||||
[Token(Token = "0x6007EA5")]
|
||||
[Address(RVA = "0x1C5F980", Offset = "0x1C5E380", VA = "0x181C5F980")]
|
||||
get
|
||||
{
|
||||
DerInteger seconds = this.accuracy.seconds;
|
||||
if (seconds == 0)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
return seconds.Value.IntValue;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170014B5 RID: 5301
|
||||
// (get) Token: 0x06007EA6 RID: 32422 RVA: 0x001A8340 File Offset: 0x001A6540
|
||||
[Token(Token = "0x170014B5")]
|
||||
public int Millis
|
||||
{
|
||||
[Token(Token = "0x6007EA6")]
|
||||
[Address(RVA = "0x1C5F940", Offset = "0x1C5E340", VA = "0x181C5F940")]
|
||||
get
|
||||
{
|
||||
DerInteger millis = this.accuracy.millis;
|
||||
if (millis == 0)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
return millis.Value.IntValue;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170014B6 RID: 5302
|
||||
// (get) Token: 0x06007EA7 RID: 32423 RVA: 0x001A8370 File Offset: 0x001A6570
|
||||
[Token(Token = "0x170014B6")]
|
||||
public int Micros
|
||||
{
|
||||
[Token(Token = "0x6007EA7")]
|
||||
[Address(RVA = "0x1C5F900", Offset = "0x1C5E300", VA = "0x181C5F900")]
|
||||
get
|
||||
{
|
||||
DerInteger micros = this.accuracy.micros;
|
||||
if (micros == 0)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
return micros.Value.IntValue;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06007EA8 RID: 32424 RVA: 0x001A83A0 File Offset: 0x001A65A0
|
||||
[Token(Token = "0x6007EA8")]
|
||||
[Address(RVA = "0x1C5F630", Offset = "0x1C5E030", VA = "0x181C5F630")]
|
||||
private int GetTimeComponent(DerInteger time)
|
||||
{
|
||||
if (time == 0)
|
||||
{
|
||||
}
|
||||
return time.Value.IntValue;
|
||||
}
|
||||
|
||||
// Token: 0x06007EA9 RID: 32425 RVA: 0x001A83C4 File Offset: 0x001A65C4
|
||||
[Token(Token = "0x6007EA9")]
|
||||
[Address(RVA = "0x1C5F670", Offset = "0x1C5E070", VA = "0x181C5F670", Slot = "3")]
|
||||
public override string ToString()
|
||||
{
|
||||
object[] array = new object[0];
|
||||
DerInteger seconds = this.accuracy.seconds;
|
||||
if (seconds == 0)
|
||||
{
|
||||
}
|
||||
int num = seconds.Value.IntValue;
|
||||
if (num != 0)
|
||||
{
|
||||
}
|
||||
array[0] = num;
|
||||
if ("." != 0)
|
||||
{
|
||||
}
|
||||
array[1] = ".";
|
||||
DerInteger millis = this.accuracy.millis;
|
||||
if (millis == 0)
|
||||
{
|
||||
}
|
||||
int intValue = millis.Value.IntValue;
|
||||
num = intValue;
|
||||
if (intValue != 0)
|
||||
{
|
||||
}
|
||||
array[2] = num;
|
||||
DerInteger micros = this.accuracy.micros;
|
||||
int intValue2;
|
||||
if (micros != 0)
|
||||
{
|
||||
intValue2 = micros.Value.IntValue;
|
||||
}
|
||||
num = intValue2;
|
||||
if (intValue2 != 0)
|
||||
{
|
||||
}
|
||||
array[3] = num;
|
||||
return string.Concat(array);
|
||||
}
|
||||
|
||||
// Token: 0x04005A58 RID: 23128
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4005A58")]
|
||||
private Accuracy accuracy;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user