149 public static T
As<T>(
object o) where
T :
class
177 public static ref T
Unbox<T>(
object box) where
T :
struct
193 return (
byte*)
source + (nint)elementOffset * (nint)
Unsafe.SizeOf<T>();
213 return ref
Unsafe.AddByteOffset(ref
source, byteOffset);
219 return ref
Unsafe.AddByteOffset(ref
source, byteOffset);
233 return (
byte*)
source - (nint)elementOffset * (nint)
Unsafe.SizeOf<T>();
253 return ref
Unsafe.SubtractByteOffset(ref
source, byteOffset);
259 return ref
Unsafe.SubtractByteOffset(ref
source, byteOffset);
266 return Unsafe.ByteOffset(target: ref target, origin: ref origin);
273 return Unsafe.AreSame(ref left, ref right);
280 return Unsafe.IsAddressGreaterThan(ref left, ref right);
287 return Unsafe.IsAddressLessThan(ref left, ref right);
301 return ref *(T*)
null;
static unsafe void InitBlock(void *startAddress, byte value, uint byteCount)
static unsafe void * AsPointer< T >(ref T value)
static ref T Unbox< T >(object box)
static unsafe void Copy< T >(void *destination, ref T source)
static void CopyBlockUnaligned(ref byte destination, ref byte source, uint byteCount)
static bool AreSame< T >(ref T left, ref T right)
static IntPtr ByteOffset< T >(ref T origin, ref T target)
static T As< T >(object o)
static unsafe ref T NullRef< T >()
static bool IsAddressGreaterThan< T >(ref T left, ref T right)
static void CopyBlock(ref byte destination, ref byte source, uint byteCount)
static unsafe T ReadUnaligned< T >(void *source)
static void InitBlock(ref byte startAddress, byte value, uint byteCount)
static ref T AddByteOffset< T >(ref T source, IntPtr byteOffset)
static unsafe void CopyBlock(void *destination, void *source, uint byteCount)
static bool IsAddressLessThan< T >(ref T left, ref T right)
static unsafe void WriteUnaligned< T >(void *destination, T value)
static ref T SubtractByteOffset< T >(ref T source, IntPtr byteOffset)
static void SkipInit< T >(out T value)
static ref TTo As< TFrom, TTo >(ref TFrom source)
static unsafe bool IsNullRef< T >(ref T source)
static unsafe T Read< T >(void *source)
static unsafe ref T AsRef< T >(void *source)
static unsafe void InitBlockUnaligned(void *startAddress, byte value, uint byteCount)
static ref T Subtract< T >(ref T source, int elementOffset)
static unsafe void CopyBlockUnaligned(void *destination, void *source, uint byteCount)
static void InitBlockUnaligned(ref byte startAddress, byte value, uint byteCount)
static unsafe void Write< T >(void *destination, T value)
static ref T Add< T >(ref T source, int elementOffset)