scripts
This commit is contained in:
@@ -0,0 +1,93 @@
|
||||
using System;
|
||||
|
||||
namespace System.IO
|
||||
{
|
||||
// Token: 0x020001D5 RID: 469
|
||||
[Serializable]
|
||||
internal class SynchronizedReader : TextReader
|
||||
{
|
||||
// Token: 0x060017FE RID: 6142 RVA: 0x0005C44C File Offset: 0x0005A64C
|
||||
public SynchronizedReader(TextReader reader)
|
||||
{
|
||||
this.reader = reader;
|
||||
}
|
||||
|
||||
// Token: 0x060017FF RID: 6143 RVA: 0x0005C45C File Offset: 0x0005A65C
|
||||
public override void Close()
|
||||
{
|
||||
lock (this)
|
||||
{
|
||||
this.reader.Close();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06001800 RID: 6144 RVA: 0x0005C4A4 File Offset: 0x0005A6A4
|
||||
public override int Peek()
|
||||
{
|
||||
int num;
|
||||
lock (this)
|
||||
{
|
||||
num = this.reader.Peek();
|
||||
}
|
||||
return num;
|
||||
}
|
||||
|
||||
// Token: 0x06001801 RID: 6145 RVA: 0x0005C4F4 File Offset: 0x0005A6F4
|
||||
public override int ReadBlock(char[] buffer, int index, int count)
|
||||
{
|
||||
int num;
|
||||
lock (this)
|
||||
{
|
||||
num = this.reader.ReadBlock(buffer, index, count);
|
||||
}
|
||||
return num;
|
||||
}
|
||||
|
||||
// Token: 0x06001802 RID: 6146 RVA: 0x0005C548 File Offset: 0x0005A748
|
||||
public override string ReadLine()
|
||||
{
|
||||
string text;
|
||||
lock (this)
|
||||
{
|
||||
text = this.reader.ReadLine();
|
||||
}
|
||||
return text;
|
||||
}
|
||||
|
||||
// Token: 0x06001803 RID: 6147 RVA: 0x0005C598 File Offset: 0x0005A798
|
||||
public override string ReadToEnd()
|
||||
{
|
||||
string text;
|
||||
lock (this)
|
||||
{
|
||||
text = this.reader.ReadToEnd();
|
||||
}
|
||||
return text;
|
||||
}
|
||||
|
||||
// Token: 0x06001804 RID: 6148 RVA: 0x0005C5E8 File Offset: 0x0005A7E8
|
||||
public override int Read()
|
||||
{
|
||||
int num;
|
||||
lock (this)
|
||||
{
|
||||
num = this.reader.Read();
|
||||
}
|
||||
return num;
|
||||
}
|
||||
|
||||
// Token: 0x06001805 RID: 6149 RVA: 0x0005C638 File Offset: 0x0005A838
|
||||
public override int Read(char[] buffer, int index, int count)
|
||||
{
|
||||
int num;
|
||||
lock (this)
|
||||
{
|
||||
num = this.reader.Read(buffer, index, count);
|
||||
}
|
||||
return num;
|
||||
}
|
||||
|
||||
// Token: 0x04000724 RID: 1828
|
||||
private TextReader reader;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user