Skip to main content

Class ByteUtils

Inheritance​
System.Object
Inherited Members​
Show
Syntax​
public static class ByteUtils

Methods​

WriteByte(Span<Byte>, ref Int32, Byte)​

Declaration​
public static void WriteByte(Span<byte> span, ref int offset, byte value)
Parameters​
TypeNameDescription
Span<System.Byte>span
System.Int32offset
System.Bytevalue

ReadByte(ReadOnlySpan<Byte>, ref Int32)​

Declaration​
public static byte ReadByte(ReadOnlySpan<byte> span, ref int offset)
Parameters​
TypeNameDescription
ReadOnlySpan<System.Byte>span
System.Int32offset
Returns​
TypeDescription
System.Byte

WriteUShort(Span<Byte>, ref Int32, UInt16)​

Declaration​
public static void WriteUShort(Span<byte> span, ref int offset, ushort value)
Parameters​
TypeNameDescription
Span<System.Byte>span
System.Int32offset
System.UInt16value

ReadUShort(ReadOnlySpan<Byte>, ref Int32)​

Declaration​
public static ushort ReadUShort(ReadOnlySpan<byte> span, ref int offset)
Parameters​
TypeNameDescription
ReadOnlySpan<System.Byte>span
System.Int32offset
Returns​
TypeDescription
System.UInt16

WriteUInt(Span<Byte>, ref Int32, UInt32)​

Declaration​
public static void WriteUInt(Span<byte> buffer, ref int offset, uint value)
Parameters​
TypeNameDescription
Span<System.Byte>buffer
System.Int32offset
System.UInt32value

ReadUInt(ReadOnlySpan<Byte>, ref Int32)​

Declaration​
public static uint ReadUInt(ReadOnlySpan<byte> span, ref int offset)
Parameters​
TypeNameDescription
ReadOnlySpan<System.Byte>span
System.Int32offset
Returns​
TypeDescription
System.UInt32

WriteULong(Span<Byte>, ref Int32, UInt64)​

Declaration​
public static void WriteULong(Span<byte> span, ref int offset, ulong value)
Parameters​
TypeNameDescription
Span<System.Byte>span
System.Int32offset
System.UInt64value

ReadULong(ReadOnlySpan<Byte>, ref Int32)​

Declaration​
public static ulong ReadULong(ReadOnlySpan<byte> span, ref int offset)
Parameters​
TypeNameDescription
ReadOnlySpan<System.Byte>span
System.Int32offset
Returns​
TypeDescription
System.UInt64