Skip to main content

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
TypeNameDescription
System.Byte[]buffer
System.Int32offset
System.Bytevalue

ReadByte(Byte[], ref Int32)

Declaration
public static byte ReadByte(byte[] buffer, ref int offset)
Parameters
TypeNameDescription
System.Byte[]buffer
System.Int32offset
Returns
TypeDescription
System.Byte

WriteUShort(Byte[], ref Int32, UInt16)

Declaration
public static void WriteUShort(byte[] buffer, ref int offset, ushort value)
Parameters
TypeNameDescription
System.Byte[]buffer
System.Int32offset
System.UInt16value

ReadUShort(Byte[], ref Int32)

Declaration
public static ushort ReadUShort(byte[] buffer, ref int offset)
Parameters
TypeNameDescription
System.Byte[]buffer
System.Int32offset
Returns
TypeDescription
System.UInt16

WriteUInt(Byte[], ref Int32, UInt32)

Declaration
public static void WriteUInt(byte[] buffer, ref int offset, uint value)
Parameters
TypeNameDescription
System.Byte[]buffer
System.Int32offset
System.UInt32value

ReadUInt(Byte[], ref Int32)

Declaration
public static uint ReadUInt(byte[] buffer, ref int offset)
Parameters
TypeNameDescription
System.Byte[]buffer
System.Int32offset
Returns
TypeDescription
System.UInt32

WriteULong(Byte[], ref Int32, UInt64)

Declaration
public static void WriteULong(byte[] buffer, ref int offset, ulong value)
Parameters
TypeNameDescription
System.Byte[]buffer
System.Int32offset
System.UInt64value

ReadULong(Byte[], ref Int32)

Declaration
public static ulong ReadULong(byte[] buffer, ref int offset)
Parameters
TypeNameDescription
System.Byte[]buffer
System.Int32offset
Returns
TypeDescription
System.UInt64