// Token: 0x06000D3D RID: 3389 RVA: 0x00037C60 File Offset: 0x00035E60 public static byte[] ReadBytes(this BinaryReader reader, int count, string elementName) { long position = reader.BaseStream.Position; byte[] array = BinaryReaderExtensions.ReadAndHandleExceptions <byte[]>(() => reader.ReadBytes(count), position, elementName); if (array.Length < count) { throw new InvalidDataException(string.Format("Unable to completely read '{0}' element from stream at position {1}, only {2} were read instead of {3}", new object[] { elementName, position, array.Length, count })); } return(array); }
// Token: 0x06000D3B RID: 3387 RVA: 0x00037BEC File Offset: 0x00035DEC public static byte ReadByte(this BinaryReader reader, string elementName) { return(BinaryReaderExtensions.ReadAndHandleExceptions <byte>(() => reader.ReadByte(), reader.BaseStream.Position, elementName)); }
// Token: 0x06000D3A RID: 3386 RVA: 0x00037B98 File Offset: 0x00035D98 public static ulong ReadUInt64(this BinaryReader reader, string elementName) { return(BinaryReaderExtensions.ReadAndHandleExceptions <ulong>(() => reader.ReadUInt64(), reader.BaseStream.Position, elementName)); }