terraria-cpp2il-methodrecon v1.4.4.9
Terraria mobile dump, with reconstructed method body. Dump with CallAnalysis: https://infinitynichto.github.io/terraria-cpp2il
Loading...
Searching...
No Matches

◆ ReadByte()

override int System.IO.FileStream.ReadByte ( )
inlinevirtualinherited

Reimplemented from System.IO.Stream.

Definition at line 261 of file FileStream.cs.

262 {
263 bool isClosed = this.safeHandle.IsClosed;
264 int num3;
265 if (this.buf_size != 0)
266 {
267 int num = this.buf_length;
268 long num2 = this.buf_start;
269 this.RefillBuffer();
270 if (this.buf_length == 0)
271 {
272 return num3;
273 }
274 int num4 = this.buf_offset;
275 byte[] array = this.buf;
276 }
278 byte[] array2 = this.buf;
279 int num5 = 1;
280 long num6 = 0L;
281 num3 = this.ReadData(safeFileHandle, array2, (int)num6, num5);
282 if (num3 != 0)
283 {
284 byte[] array3 = this.buf;
285 return num3;
286 }
287 return num3;
288 }
class f__AnonymousType0<< Count > j__TPar
int ReadData(SafeHandle safeHandle, byte[] buf, int offset, int count)
SafeFileHandle safeHandle

References System.array, System.IO.FileStream.buf, System.IO.FileStream.buf_length, System.IO.FileStream.buf_offset, System.IO.FileStream.buf_size, System.IO.FileStream.buf_start, System.Runtime.InteropServices.SafeHandle.IsClosed, j__TPar, System.L, System.IO.FileStream.ReadData(), System.IO.FileStream.RefillBuffer(), and System.IO.FileStream.safeHandle.