Class ByteUtils
Inheritance
System.Object
Inherited Members
Show
Syntax
public static class ByteUtils
Methods
WriteByte(Byte[], ref Int32, Byte)
Declaration
public static void WriteByte(byte[] buffer, ref int offset, byte value)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | buffer | |
System.Int32 | offset | |
System.Byte | value |
ReadByte(Byte[], ref Int32)
Declaration
public static byte ReadByte(byte[] buffer, ref int offset)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | buffer | |
System.Int32 | offset |
Returns
Type | Description |
---|---|
System.Byte |
WriteUShort(Byte[], ref Int32, UInt16)
Declaration
public static void WriteUShort(byte[] buffer, ref int offset, ushort value)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | buffer | |
System.Int32 | offset | |
System.UInt16 | value |
ReadUShort(Byte[], ref Int32)
Declaration
public static ushort ReadUShort(byte[] buffer, ref int offset)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | buffer | |
System.Int32 | offset |
Returns
Type | Description |
---|---|
System.UInt16 |
WriteUInt(Byte[], ref Int32, UInt32)
Declaration
public static void WriteUInt(byte[] buffer, ref int offset, uint value)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | buffer | |
System.Int32 | offset | |
System.UInt32 | value |
ReadUInt(Byte[], ref Int32)
Declaration
public static uint ReadUInt(byte[] buffer, ref int offset)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | buffer | |
System.Int32 | offset |
Returns
Type | Description |
---|---|
System.UInt32 |
WriteULong(Byte[], ref Int32, UInt64)
Declaration
public static void WriteULong(byte[] buffer, ref int offset, ulong value)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | buffer | |
System.Int32 | offset | |
System.UInt64 | value |
ReadULong(Byte[], ref Int32)
Declaration
public static ulong ReadULong(byte[] buffer, ref int offset)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | buffer | |
System.Int32 | offset |
Returns
Type | Description |
---|---|
System.UInt64 |