82 if (access < FileAccess.Read || access >
FileAccess.ReadWrite)
115 protected virtual void Dispose(
bool disposing)
232 if (((uint)num & 0x7F00FFFFu) != 0 || (num & 0xFF0000) > 1835008)
236 bool isNegative = (num &
int.MinValue) != 0;
237 byte scale = (byte)(num >> 16);
238 return new decimal(lo, mid, hi, isNegative, scale);
251 [CLSCompliant(
false)]
257 [CLSCompliant(
false)]
263 [CLSCompliant(
false)]
269 [CLSCompliant(
false)]
275 public void Read<T>(
long position, out T structure) where
T :
struct
344 ulong num4 = (ulong)(num *
count);
345 if ((ulong)num3 < num4)
347 num2 = (int)(num3 / num);
470 [CLSCompliant(
false)]
476 [CLSCompliant(
false)]
482 [CLSCompliant(
false)]
488 [CLSCompliant(
false)]
494 public void Write<T>(
long position, ref T structure) where
T :
struct
static unsafe float Int32BitsToSingle(int value)
static unsafe int SingleToInt32Bits(float value)
static unsafe double Int64BitsToDouble(long value)
static unsafe long DoubleToInt64Bits(double value)
static void SuppressFinalize(object obj)
void Write(long position, bool value)
unsafe void Write(long position, long value)
sbyte ReadSByte(long position)
void EnsureSafeToWrite(long position, int sizeOfType)
void WriteArray< T >(long position, T[] array, int offset, int count)
double ReadDouble(long position)
void Write(long position, char value)
void Write(long position, double value)
virtual void Dispose(bool disposing)
void EnsureSafeToRead(long position, int sizeOfType)
UnmanagedMemoryAccessor(SafeBuffer buffer, long offset, long capacity, FileAccess access)
void Write(long position, sbyte value)
ushort ReadUInt16(long position)
UnmanagedMemoryAccessor(SafeBuffer buffer, long offset, long capacity)
unsafe void Write(long position, byte value)
unsafe void Write(long position, int value)
unsafe byte ReadByte(long position)
char ReadChar(long position)
void Read< T >(long position, out T structure)
bool ReadBoolean(long position)
unsafe void Initialize(SafeBuffer buffer, long offset, long capacity, FileAccess access)
void Write(long position, ushort value)
float ReadSingle(long position)
unsafe decimal ReadDecimal(long position)
unsafe short ReadInt16(long position)
UnmanagedMemoryAccessor()
uint ReadUInt32(long position)
unsafe int ReadInt32(long position)
void Write(long position, uint value)
unsafe void Write(long position, short value)
void Write(long position, ulong value)
void Write(long position, float value)
unsafe long ReadInt64(long position)
ulong ReadUInt64(long position)
int ReadArray< T >(long position, T[] array, int offset, int count)
void Write< T >(long position, ref T structure)
unsafe void Write(long position, decimal value)
unsafe void AcquirePointer(ref byte *pointer)
static string ArgumentOutOfRange_PositionLessThanCapacityRequired
static string InvalidOperation_CalledTwice
static string NotSupported_Reading
static string Argument_UnmanagedMemAccessorWrapAround
static string NotSupported_Writing
static string Format(string resourceFormat, object p1)
static string Argument_NotEnoughBytesToRead
static string Arg_BadDecimal
static string Argument_NotEnoughBytesToWrite
static string ArgumentNull_Buffer
static string ObjectDisposed_ViewAccessorClosed
static string Argument_InvalidOffLen
static string ArgumentOutOfRange_NeedNonNegNum
static string Argument_OffsetAndCapacityOutOfBounds