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
| Type | Name | Description |
|---|---|---|
| Span<System.Byte> | span | |
| System.Int32 | offset | |
| System.Byte | value |
ReadByte(ReadOnlySpan<Byte>, ref Int32)
Declaration
public static byte ReadByte(ReadOnlySpan<byte> span, ref int offset)
Parameters
| Type | Name | Description |
|---|---|---|
| ReadOnlySpan<System.Byte> | span | |
| System.Int32 | offset |
Returns
| Type | Description |
|---|---|
| System.Byte |
WriteUShort(Span<Byte>, ref Int32, UInt16)
Declaration
public static void WriteUShort(Span<byte> span, ref int offset, ushort value)
Parameters
| Type | Name | Description |
|---|---|---|
| Span<System.Byte> | span | |
| System.Int32 | offset | |
| System.UInt16 | value |
ReadUShort(ReadOnlySpan<Byte>, ref Int32)
Declaration
public static ushort ReadUShort(ReadOnlySpan<byte> span, ref int offset)
Parameters
| Type | Name | Description |
|---|---|---|
| ReadOnlySpan<System.Byte> | span | |
| System.Int32 | offset |
Returns
| Type | Description |
|---|---|
| System.UInt16 |
WriteUInt(Span<Byte>, ref Int32, UInt32)
Declaration
public static void WriteUInt(Span<byte> buffer, ref int offset, uint value)
Parameters
| Type | Name | Description |
|---|---|---|
| Span<System.Byte> | buffer | |
| System.Int32 | offset | |
| System.UInt32 | value |
ReadUInt(ReadOnlySpan<Byte>, ref Int32)
Declaration
public static uint ReadUInt(ReadOnlySpan<byte> span, ref int offset)
Parameters
| Type | Name | Description |
|---|---|---|
| ReadOnlySpan<System.Byte> | span | |
| System.Int32 | offset |
Returns
| Type | Description |
|---|---|
| System.UInt32 |
WriteULong(Span<Byte>, ref Int32, UInt64)
Declaration
public static void WriteULong(Span<byte> span, ref int offset, ulong value)
Parameters
| Type | Name | Description |
|---|---|---|
| Span<System.Byte> | span | |
| System.Int32 | offset | |
| System.UInt64 | value |
ReadULong(ReadOnlySpan<Byte>, ref Int32)
Declaration
public static ulong ReadULong(ReadOnlySpan<byte> span, ref int offset)
Parameters
| Type | Name | Description |
|---|---|---|
| ReadOnlySpan<System.Byte> | span | |
| System.Int32 | offset |
Returns
| Type | Description |
|---|---|
| System.UInt64 |