22 value = (uint)(value3 - 16384);
32 value = (uint)((
int)value4 -
int.MinValue);
42 value = (long)value2 - -4611686018427387904
L;
57 if (longToEncode < 63)
61 buffer[0] = (byte)longToEncode;
66 else if (longToEncode < 16383)
74 else if (longToEncode < 1073741823)
104 if (
value >= 1073741823)
static bool TryReadUInt32BigEndian(ReadOnlySpan< byte > source, out uint value)
static bool TryWriteUInt32BigEndian(Span< byte > destination, uint value)
static bool TryWriteUInt64BigEndian(Span< byte > destination, ulong value)
static bool TryReadUInt64BigEndian(ReadOnlySpan< byte > source, out ulong value)
static bool TryReadUInt16BigEndian(ReadOnlySpan< byte > source, out ushort value)
static bool TryWriteUInt16BigEndian(Span< byte > destination, ushort value)
static bool TryRead(ReadOnlySpan< byte > buffer, out long value, out int bytesRead)
static int WriteInteger(Span< byte > buffer, long longToEncode)
static int GetByteCount(long value)
static bool TryWrite(Span< byte > buffer, long longToEncode, out int bytesWritten)