48 Unsafe.Add(ref reference, 4) = e;
63 value = (uint)((d << 24) | (c << 16) | (b << 8) | a);
64 num = (uint)((f << 8) | e);
68 value = (uint)((a << 24) | (b << 16) | (c << 8) | d);
69 num = (uint)((e << 8) | f);
73 Unsafe.WriteUnaligned(ref
Unsafe.Add(ref reference, 4), (ushort)num);
95 ulong
value = ((!
BitConverter.
IsLittleEndian) ? (((ulong)a << 48) | ((ulong)b << 32) | ((ulong)c << 16) | d) : (((ulong)d << 48) | ((ulong)c << 32) | ((ulong)b << 16) | a));
98 Unsafe.Add(ref reference, 4) = e;
113 value = ((ulong)d << 48) | ((ulong)c << 32) | ((ulong)b << 16) | a;
114 value2 = ((uint)f << 16) | e;
118 value = ((ulong)a << 48) | ((ulong)b << 32) | ((ulong)c << 16) | d;
119 value2 = ((uint)e << 16) | f;
149 if ((uint)requestedOffset > (uint)spanRealLength)
153 if ((uint)requestedLength > (uint)(spanRealLength - requestedOffset))
158 else if ((ulong)(uint)spanRealLength < (ulong)((
long)(uint)requestedOffset + (
long)(uint)requestedLength))
static readonly bool IsLittleEndian
static sbyte ReverseEndianness(sbyte value)
static bool TryWriteBytes(Span< byte > span, byte a, byte b, byte c, byte d)
static bool TryWriteBytes(Span< byte > span, byte a, byte b, byte c, byte d, byte e)
static bool IsValidIndex< T >(ReadOnlySpan< T > span, int index)
static bool TryWriteUInt64LittleEndian(Span< byte > span, int offset, ulong value)
static bool AreValidIndexAndLength(int spanRealLength, int requestedOffset, int requestedLength)
static bool TryWriteChars(Span< char > span, char a, char b, char c, char d, char e)
static bool TryWriteChars(Span< char > span, char a, char b, char c, char d, char e, char f)
static bool TryWriteBytes(Span< byte > span, byte a, byte b, byte c, byte d, byte e, byte f)
static bool TryWriteChars(Span< char > span, char a, char b, char c, char d)