Skip to content
This repository has been archived by the owner on Feb 26, 2021. It is now read-only.

Exomia.Serialization.Utils

Daniel Baetz edited this page Jun 21, 2019 · 5 revisions

BitUtil

fast binary read and write operations on a byte array.

public static class Exomia.Serialization.Utils.BitUtil

Static Methods

void EnsureCapacity(Byte[]& bytes, Int32 offset, Int32 appendLength)

Summary:

Ensures that capacity.

Parameter:

  • bytes - [in,out] The bytes.
  • offset - The offset.
  • appendLength - Length of the append.

Boolean[] ReadArrayBoolean(Byte[]& bytes, Int32 offset, Int32& byteSize)

Summary:

reads a boolean value of the byte array from the given offset.

Parameter:

  • bytes - [in,out] byte array.
  • offset - offset.
  • byteSize - [out] out sizeof array in bytes.

Boolean[] ReadArrayBoolean(Byte* src, Int32 offset, Int32& byteSize)

Summary:

reads a bool value of the byte array from the given offset.

Parameter:

  • src - [in,out] byte array.
  • offset - offset.
  • byteSize - [out] out sizeof array in bytes.

Char[] ReadArrayChar(Byte[]& bytes, Int32 offset, Int32& byteSize)

Summary:

reads a char value of the byte array from the given offset.

Parameter:

  • bytes - [in,out] byte array.
  • offset - offset.
  • byteSize - [out] out sizeof array in bytes.

Char[] ReadArrayChar(Byte* src, Int32 offset, Int32& byteSize)

Summary:

reads a char value of the byte array from the given offset.

Parameter:

  • src - [in,out] byte array.
  • offset - offset.
  • byteSize - [out] out sizeof array in bytes.

DateTime[] ReadArrayDateTime(Byte[]& bytes, Int32 offset, Int32& byteSize)

Summary:

reads a Guid value of the byte array from the given offset.

Parameter:

  • bytes - [in,out] byte array.
  • offset - offset.
  • byteSize - [out] out sizeof array in bytes.

DateTime[] ReadArrayDateTime(Byte* src, Int32 offset, Int32& byteSize)

Summary:

reads a DateTime value of the byte array from the given offset.

Parameter:

  • src - [in,out] byte array.
  • offset - offset.
  • byteSize - [out] out sizeof array in bytes.

Decimal[] ReadArrayDecimal(Byte[]& bytes, Int32 offset, Int32& byteSize)

Summary:

reads a decimal value of the byte array from the given offset.

Parameter:

  • bytes - [in,out] byte array.
  • offset - offset.
  • byteSize - [out] out sizeof array in bytes.

Decimal[] ReadArrayDecimal(Byte* src, Int32 offset, Int32& byteSize)

Summary:

reads a decimal value of the byte array from the given offset.

Parameter:

  • src - [in,out] byte array.
  • offset - offset.
  • byteSize - [out] out sizeof array in bytes.

Guid[] ReadArrayGuid(Byte[]& bytes, Int32 offset, Int32& byteSize)

Summary:

reads a Guid value of the byte array from the given offset.

Parameter:

  • bytes - [in,out] byte array.
  • offset - offset.
  • byteSize - [out] out sizeof array in bytes.

Guid[] ReadArrayGuid(Byte* src, Int32 offset, Int32& byteSize)

Summary:

reads a Guid value of the byte array from the given offset.

Parameter:

  • src - [in,out] byte array.
  • offset - offset.
  • byteSize - [out] out sizeof array in bytes.

Int16[] ReadArrayInt16(Byte[]& bytes, Int32 offset, Int32& byteSize)

Summary:

reads a short value of the byte array from the given offset.

Parameter:

  • bytes - [in,out] byte array.
  • offset - offset.
  • byteSize - [out] out sizeof array in bytes.

Int16[] ReadArrayInt16(Byte* src, Int32 offset, Int32& byteSize)

Summary:

reads a short value of the byte array from the given offset.

Parameter:

  • src - [in,out] byte array.
  • offset - offset.
  • byteSize - [out] out sizeof array in bytes.

Int32[] ReadArrayInt32(Byte[]& bytes, Int32 offset, Int32& byteSize)

Summary:

reads a int value of the byte array from the given offset.

Parameter:

  • bytes - [in,out] byte array.
  • offset - offset.
  • byteSize - [out] out sizeof array in bytes.

Int32[] ReadArrayInt32(Byte* src, Int32 offset, Int32& byteSize)

Summary:

reads a int value of the byte array from the given offset.

Parameter:

  • src - [in,out] byte array.
  • offset - offset.
  • byteSize - [out] out sizeof array in bytes.

Int64[] ReadArrayInt64(Byte[]& bytes, Int32 offset, Int32& byteSize)

Summary:

reads a long value of the byte array from the given offset.

Parameter:

  • bytes - [in,out] byte array.
  • offset - offset.
  • byteSize - [out] out sizeof array in bytes.

Int64[] ReadArrayInt64(Byte* src, Int32 offset, Int32& byteSize)

Summary:

reads a long value of the byte array from the given offset.

Parameter:

  • src - [in,out] byte array.
  • offset - offset.
  • byteSize - [out] out sizeof array in bytes.

Double[] ReadArrayReal(Byte[]& bytes, Int32 offset, Int32& byteSize)

Summary:

reads a double value of the byte array from the given offset.

Parameter:

  • bytes - [in,out] byte array.
  • offset - offset.
  • byteSize - [out] out sizeof array in bytes.

Double[] ReadArrayReal(Byte* src, Int32 offset, Int32& byteSize)

Summary:

reads a double value of the byte array from the given offset.

Parameter:

  • src - [in,out] byte pointer.
  • offset - offset.
  • byteSize - [out] out sizeof array in bytes.

Single[] ReadArraySingle(Byte[]& bytes, Int32 offset, Int32& byteSize)

Summary:

reads a float value of the byte array from the given offset.

Parameter:

  • bytes - [in,out] byte array.
  • offset - offset.
  • byteSize - [out] out sizeof array in bytes.

Single[] ReadArraySingle(Byte* src, Int32 offset, Int32& byteSize)

Summary:

reads a float value of the byte array from the given offset.

Parameter:

  • src - [in,out] byte array.
  • offset - offset.
  • byteSize - [out] out sizeof array in bytes.

String[] ReadArrayString(Byte[]& bytes, Int32 offset, Int32& byteSize)

Summary:

reads a string value of the byte array from the given offset.

Parameter:

  • bytes - [in,out] byte array.
  • offset - offset.
  • byteSize - [out] out sizeof array in bytes.

TimeSpan[] ReadArrayTimeSpan(Byte[]& bytes, Int32 offset, Int32& byteSize)

Summary:

reads a Guid value of the byte array from the given offset.

Parameter:

  • bytes - [in,out] byte array.
  • offset - offset.
  • byteSize - [out] out sizeof array in bytes.

TimeSpan[] ReadArrayTimeSpan(Byte* src, Int32 offset, Int32& byteSize)

Summary:

reads a TimeSpan value of the byte array from the given offset.

Parameter:

  • src - [in,out] byte array.
  • offset - offset.
  • byteSize - [out] out sizeof array in bytes.

UInt16[] ReadArrayUInt16(Byte[]& bytes, Int32 offset, Int32& byteSize)

Summary:

reads a ushort value of the byte array from the given offset.

Parameter:

  • bytes - [in,out] byte array.
  • offset - offset.
  • byteSize - [out] out sizeof array in bytes.

UInt16[] ReadArrayUInt16(Byte* src, Int32 offset, Int32& byteSize)

Summary:

reads a ushort value of the byte array from the given offset.

Parameter:

  • src - [in,out] byte array.
  • offset - offset.
  • byteSize - [out] out sizeof array in bytes.

UInt32[] ReadArrayUInt32(Byte[]& bytes, Int32 offset, Int32& byteSize)

Summary:

reads a uint value of the byte array from the given offset.

Parameter:

  • bytes - [in,out] byte array.
  • offset - offset.
  • byteSize - [out] out sizeof array in bytes.

UInt32[] ReadArrayUInt32(Byte* src, Int32 offset, Int32& byteSize)

Summary:

reads a uint value of the byte array from the given offset.

Parameter:

  • src - [in,out] byte array.
  • offset - offset.
  • byteSize - [out] out sizeof array in bytes.

UInt64[] ReadArrayUInt64(Byte[]& bytes, Int32 offset, Int32& byteSize)

Summary:

reads a ulong value of the byte array from the given offset.

Parameter:

  • bytes - [in,out] byte array.
  • offset - offset.
  • byteSize - [out] out sizeof array in bytes.

UInt64[] ReadArrayUInt64(Byte* src, Int32 offset, Int32& byteSize)

Summary:

reads a ulong value of the byte array from the given offset.

Parameter:

  • src - [in,out] byte array.
  • offset - offset.
  • byteSize - [out] out sizeof array in bytes.

Boolean ReadBoolean(Byte* src, Int32 offset)

Summary:

reads a bool value of the byte array from the given offset.

Parameter:

  • src - [in,out] byte array.
  • offset - offset.

Boolean ReadBoolean(Byte[]& bytes, Int32 offset)

Summary:

reads a boolean value of the byte array from the given offset.

Parameter:

  • bytes - [in,out] byte array.
  • offset - offset.

Byte ReadByte(Byte[]& bytes, Int32 offset)

Summary:

reads a byte value of the byte array from the given offset.

Parameter:

  • bytes - [in,out] byte array.
  • offset - offset.

Byte ReadByte(Byte* src, Int32 offset)

Summary:

reads a byte value of the byte array from the given offset.

Parameter:

  • src - [in,out] byte array.
  • offset - offset.

Byte[] ReadBytes(Byte[]& bytes, Int32 offset, Int32 count)

Summary:

reads a byte array of the byte array from the given offset.

Parameter:

  • bytes - [in,out] byte array.
  • offset - offset.
  • count - bytes to read.

Char ReadChar(Byte[]& bytes, Int32 offset)

Summary:

reads a char value of the byte array from the given offset.

Parameter:

  • bytes - [in,out] byte array.
  • offset - offset.

Char ReadChar(Byte* src, Int32 offset)

Summary:

reads a char value of the byte array from the given offset.

Parameter:

  • src - [in,out] byte array.
  • offset - offset.

DateTime ReadDateTime(Byte[]& bytes, Int32 offset)

Summary:

reads a Guid value of the byte array from the given offset.

Parameter:

  • bytes - [in,out] byte array.
  • offset - offset.

DateTime ReadDateTime(Byte* src, Int32 offset)

Summary:

reads a DateTime value of the byte array from the given offset.

Parameter:

  • src - [in,out] byte array.
  • offset - offset.

Decimal ReadDecimal(Byte[]& bytes, Int32 offset)

Summary:

reads a decimal value of the byte array from the given offset.

Parameter:

  • bytes - [in,out] byte array.
  • offset - offset.

Decimal ReadDecimal(Byte* src, Int32 offset)

Summary:

reads a decimal value of the byte array from the given offset.

Parameter:

  • src - [in,out] byte array.
  • offset - offset.

Guid ReadGuid(Byte[]& bytes, Int32 offset)

Summary:

reads a Guid value of the byte array from the given offset.

Parameter:

  • bytes - [in,out] byte array.
  • offset - offset.

Guid ReadGuid(Byte* src, Int32 offset)

Summary:

reads a Guid value of the byte array from the given offset.

Parameter:

  • src - [in,out] byte array.
  • offset - offset.

Int16 ReadInt16(Byte[]& bytes, Int32 offset)

Summary:

reads a short value of the byte array from the given offset.

Parameter:

  • bytes - [in,out] byte array.
  • offset - offset.

Int16 ReadInt16(Byte* src, Int32 offset)

Summary:

reads a short value of the byte array from the given offset.

Parameter:

  • src - [in,out] byte array.
  • offset - offset.

Int32 ReadInt32(Byte[]& bytes, Int32 offset)

Summary:

reads a int value of the byte array from the given offset.

Parameter:

  • bytes - [in,out] byte array.
  • offset - offset.

Int32 ReadInt32(Byte* src, Int32 offset)

Summary:

reads a int value of the byte array from the given offset.

Parameter:

  • src - [in,out] byte array.
  • offset - offset.

Int64 ReadInt64(Byte[]& bytes, Int32 offset)

Summary:

reads a long value of the byte array from the given offset.

Parameter:

  • bytes - [in,out] byte array.
  • offset - offset.

Int64 ReadInt64(Byte* src, Int32 offset)

Summary:

reads a long value of the byte array from the given offset.

Parameter:

  • src - [in,out] byte array.
  • offset - offset.

Double ReadReal(Byte[]& bytes, Int32 offset)

Summary:

reads a double value of the byte array from the given offset.

Parameter:

  • bytes - [in,out] byte array.
  • offset - offset.

Double ReadReal(Byte* src, Int32 offset)

Summary:

reads a double value of the byte array from the given offset.

Parameter:

  • src - [in,out] byte pointer.
  • offset - offset.

SByte ReadSByte(Byte[]& bytes, Int32 offset)

Summary:

reads a sbyte value of the byte array from the given offset.

Parameter:

  • bytes - [in,out] byte array.
  • offset - offset.

SByte ReadSByte(Byte* src, Int32 offset)

Summary:

reads a sbyte value of the byte array from the given offset.

Parameter:

  • src - [in,out] byte array.
  • offset - offset.

Single ReadSingle(Byte[]& bytes, Int32 offset)

Summary:

reads a float value of the byte array from the given offset.

Parameter:

  • bytes - [in,out] byte array.
  • offset - offset.

Single ReadSingle(Byte* src, Int32 offset)

Summary:

reads a float value of the byte array from the given offset.

Parameter:

  • src - [in,out] byte array.
  • offset - offset.

String ReadString(Byte[]& bytes, Int32 offset)

Summary:

reads a string value of the byte array from the given offset.

Parameter:

  • bytes - [in,out] byte array.
  • offset - offset.

String ReadString(Byte[]& bytes, Int32 offset, Encoding encoding)

Summary:

reads a string value of the byte array from the given offset.

Parameter:

  • bytes - [in,out] byte array.
  • offset - offset.
  • encoding - specify the encoding to use.

String ReadString(Byte[]& bytes, Int32 offset, Int32& byteSize)

Summary:

reads a string value of the byte array from the given offset.

Parameter:

  • bytes - [in,out] byte array.
  • offset - offset.
  • byteSize - [out] out sizeof string in bytes.

String ReadString(Byte[]& bytes, Int32 offset, Encoding encoding, Int32& byteSize)

Summary:

reads a string value of the byte array from the given offset.

Parameter:

  • bytes - [in,out] byte array.
  • offset - offset.
  • encoding - specify the encoding to use.
  • byteSize - [out] out sizeof string in bytes.

String ReadString(Byte* src, Int32 offset)

Summary:

reads a string value of the byte array from the given offset unicode string only!

Parameter:

  • src - [in,out] byte array.
  • offset - offset.

String ReadString(Byte* src, Int32 offset, Int32& byteSize)

Summary:

reads a string value of the byte array from the given offset unicode string only!

Parameter:

  • src - [in,out] byte array.
  • offset - offset.
  • byteSize - [out] out sizeof string in bytes.

String ReadString(Byte* src, Int32 offset, Encoding encoding)

Summary:

reads a string value of the byte array from the given offset unicode string only!

Parameter:

  • src - [in,out] byte array.
  • offset - offset.
  • encoding - specify the encoding to use.

String ReadString(Byte* src, Int32 offset, Encoding encoding, Int32& byteSize)

Summary:

reads a string value of the byte array from the given offset unicode string only!

Parameter:

  • src - [in,out] byte array.
  • offset - offset.
  • encoding - specify the encoding to use.
  • byteSize - [out] out sizeof string in bytes.

TimeSpan ReadTimeSpan(Byte[]& bytes, Int32 offset)

Summary:

reads a Guid value of the byte array from the given offset.

Parameter:

  • bytes - [in,out] byte array.
  • offset - offset.

TimeSpan ReadTimeSpan(Byte* src, Int32 offset)

Summary:

reads a TimeSpan value of the byte array from the given offset.

Parameter:

  • src - [in,out] byte array.
  • offset - offset.

UInt16 ReadUInt16(Byte[]& bytes, Int32 offset)

Summary:

reads a ushort value of the byte array from the given offset.

Parameter:

  • bytes - [in,out] byte array.
  • offset - offset.

UInt16 ReadUInt16(Byte* src, Int32 offset)

Summary:

reads a ushort value of the byte array from the given offset.

Parameter:

  • src - [in,out] byte array.
  • offset - offset.

UInt32 ReadUInt32(Byte[]& bytes, Int32 offset)

Summary:

reads a uint value of the byte array from the given offset.

Parameter:

  • bytes - [in,out] byte array.
  • offset - offset.

UInt32 ReadUInt32(Byte* src, Int32 offset)

Summary:

reads a uint value of the byte array from the given offset.

Parameter:

  • src - [in,out] byte array.
  • offset - offset.

UInt64 ReadUInt64(Byte[]& bytes, Int32 offset)

Summary:

reads a ulong value of the byte array from the given offset.

Parameter:

  • bytes - [in,out] byte array.
  • offset - offset.

UInt64 ReadUInt64(Byte* src, Int32 offset)

Summary:

reads a ulong value of the byte array from the given offset.

Parameter:

  • src - [in,out] byte array.
  • offset - offset.

void Resize(Byte[]& array, Int32 newSize)

Summary:

Resizes.

Parameter:

  • array - [in,out] The array.
  • newSize - Size of the new.

Int32 Write(Byte[]& bytes, Int32 offset, Decimal value)

Summary:

writes a boolean value into the byte array to the given offset.

Parameter:

  • bytes - [in,out] byte array.
  • offset - offset.
  • value - boolean value.

Int32 Write(Byte[]& bytes, Int32 offset, Guid value)

Summary:

writes a boolean value into the byte array to the given offset.

Parameter:

  • bytes - [in,out] byte array.
  • offset - offset.
  • value - boolean value.

Int32 Write(Byte[]& bytes, Int32 offset, TimeSpan value)

Summary:

writes a boolean value into the byte array to the given offset.

Parameter:

  • bytes - [in,out] byte array.
  • offset - offset.
  • value - boolean value.

Int32 Write(Byte[]& bytes, Int32 offset, DateTime value)

Summary:

writes a boolean value into the byte array to the given offset.

Parameter:

  • bytes - [in,out] byte array.
  • offset - offset.
  • value - boolean value.

Int32 Write(Byte[]& bytes, Int32 offset, Boolean value)

Summary:

writes a boolean value into the byte array to the given offset.

Parameter:

  • bytes - [in,out] byte array.
  • offset - offset.
  • value - boolean value.

Int32 Write(Byte[]& bytes, Int32 offset, Byte value)

Summary:

writes a boolean value into the byte array to the given offset.

Parameter:

  • bytes - [in,out] byte array.
  • offset - offset.
  • value - boolean value.

Int32 Write(Byte[]& bytes, Int32 offset, SByte value)

Summary:

writes a boolean value into the byte array to the given offset.

Parameter:

  • bytes - [in,out] byte array.
  • offset - offset.
  • value - boolean value.

Int32 Write(Byte[]& bytes, Int32 offset, Byte[] value)

Summary:

writes a boolean value into the byte array to the given offset.

Parameter:

  • bytes - [in,out] byte array.
  • offset - offset.
  • value - boolean value.

Int32 Write(Byte[]& bytes, Int32 offset, Single value)

Summary:

writes a boolean value into the byte array to the given offset.

Parameter:

  • bytes - [in,out] byte array.
  • offset - offset.
  • value - boolean value.

Int32 Write(Byte[]& bytes, Int32 offset, Double value)

Summary:

writes a boolean value into the byte array to the given offset.

Parameter:

  • bytes - [in,out] byte array.
  • offset - offset.
  • value - boolean value.

Int32 Write(Byte[]& bytes, Int32 offset, Int16 value)

Summary:

writes a boolean value into the byte array to the given offset.

Parameter:

  • bytes - [in,out] byte array.
  • offset - offset.
  • value - boolean value.

Int32 Write(Byte[]& bytes, Int32 offset, UInt16 value)

Summary:

writes a boolean value into the byte array to the given offset.

Parameter:

  • bytes - [in,out] byte array.
  • offset - offset.
  • value - boolean value.

Int32 Write(Byte[]& bytes, Int32 offset, Int32 value)

Summary:

writes a boolean value into the byte array to the given offset.

Parameter:

  • bytes - [in,out] byte array.
  • offset - offset.
  • value - boolean value.

Int32 Write(Byte[]& bytes, Int32 offset, UInt32 value)

Summary:

writes a boolean value into the byte array to the given offset.

Parameter:

  • bytes - [in,out] byte array.
  • offset - offset.
  • value - boolean value.

Int32 Write(Byte[]& bytes, Int32 offset, Int64 value)

Summary:

writes a boolean value into the byte array to the given offset.

Parameter:

  • bytes - [in,out] byte array.
  • offset - offset.
  • value - boolean value.

Int32 Write(Byte[]& bytes, Int32 offset, UInt64 value)

Summary:

writes a boolean value into the byte array to the given offset.

Parameter:

  • bytes - [in,out] byte array.
  • offset - offset.
  • value - boolean value.

Int32 Write(Byte[]& bytes, Int32 offset, Char value)

Summary:

writes a boolean value into the byte array to the given offset.

Parameter:

  • bytes - [in,out] byte array.
  • offset - offset.
  • value - boolean value.

Int32 Write(Byte[]& bytes, Int32 offset, String value)

Summary:

writes a boolean value into the byte array to the given offset.

Parameter:

  • bytes - [in,out] byte array.
  • offset - offset.
  • value - boolean value.

Int32 Write(Byte[]& bytes, Int32 offset, String value, Encoding encoding)

Summary:

writes a string value into the byte array to the given offset.

Parameter:

  • bytes - [in,out] byte array.
  • offset - offset.
  • value - string value.
  • encoding - specify the encoding to use.

Int32 Write(Byte[]& bytes, Int32 offset, Boolean[] values)

Summary:

writes a boolean array into the byte array to the given offset.

Parameter:

  • bytes - [in,out] byte array.
  • offset - offset.
  • values - boolean array.

Int32 Write(Byte[]& bytes, Int32 offset, SByte[] values)

Summary:

writes a boolean array into the byte array to the given offset.

Parameter:

  • bytes - [in,out] byte array.
  • offset - offset.
  • values - boolean array.

Int32 Write(Byte[]& bytes, Int32 offset, Single[] values)

Summary:

writes a boolean array into the byte array to the given offset.

Parameter:

  • bytes - [in,out] byte array.
  • offset - offset.
  • values - boolean array.

Int32 Write(Byte[]& bytes, Int32 offset, Double[] values)

Summary:

writes a boolean array into the byte array to the given offset.

Parameter:

  • bytes - [in,out] byte array.
  • offset - offset.
  • values - boolean array.

Int32 Write(Byte[]& bytes, Int32 offset, Int16[] values)

Summary:

writes a boolean array into the byte array to the given offset.

Parameter:

  • bytes - [in,out] byte array.
  • offset - offset.
  • values - boolean array.

Int32 Write(Byte[]& bytes, Int32 offset, UInt16[] values)

Summary:

writes a boolean array into the byte array to the given offset.

Parameter:

  • bytes - [in,out] byte array.
  • offset - offset.
  • values - boolean array.

Int32 Write(Byte[]& bytes, Int32 offset, Int32[] values)

Summary:

writes a boolean array into the byte array to the given offset.

Parameter:

  • bytes - [in,out] byte array.
  • offset - offset.
  • values - boolean array.

Int32 Write(Byte[]& bytes, Int32 offset, UInt32[] values)

Summary:

writes a boolean array into the byte array to the given offset.

Parameter:

  • bytes - [in,out] byte array.
  • offset - offset.
  • values - boolean array.

Int32 Write(Byte[]& bytes, Int32 offset, Int64[] values)

Summary:

writes a boolean array into the byte array to the given offset.

Parameter:

  • bytes - [in,out] byte array.
  • offset - offset.
  • values - boolean array.

Int32 Write(Byte[]& bytes, Int32 offset, UInt64[] values)

Summary:

writes a boolean array into the byte array to the given offset.

Parameter:

  • bytes - [in,out] byte array.
  • offset - offset.
  • values - boolean array.

Int32 Write(Byte[]& bytes, Int32 offset, Char[] values)

Summary:

writes a boolean array into the byte array to the given offset.

Parameter:

  • bytes - [in,out] byte array.
  • offset - offset.
  • values - boolean array.

Int32 Write(Byte[]& bytes, Int32 offset, String[] values)

Summary:

writes a boolean array into the byte array to the given offset.

Parameter:

  • bytes - [in,out] byte array.
  • offset - offset.
  • values - boolean array.

Int32 Write(Byte[]& bytes, Int32 offset, Decimal[] values)

Summary:

writes a boolean array into the byte array to the given offset.

Parameter:

  • bytes - [in,out] byte array.
  • offset - offset.
  • values - boolean array.

Int32 Write(Byte[]& bytes, Int32 offset, Guid[] values)

Summary:

writes a boolean array into the byte array to the given offset.

Parameter:

  • bytes - [in,out] byte array.
  • offset - offset.
  • values - boolean array.

Int32 Write(Byte[]& bytes, Int32 offset, TimeSpan[] values)

Summary:

writes a boolean array into the byte array to the given offset.

Parameter:

  • bytes - [in,out] byte array.
  • offset - offset.
  • values - boolean array.

Int32 Write(Byte[]& bytes, Int32 offset, DateTime[] values)

Summary:

writes a boolean array into the byte array to the given offset.

Parameter:

  • bytes - [in,out] byte array.
  • offset - offset.
  • values - boolean array.

void WriteUnsafe(Byte* dst, Int32 offset, String value, Int32& byteSize)

Summary:

writes a unicode string value into the byte array to the given offset does not ensure capacity of the byte array.

Parameter:

  • dst - [in,out] byte array.
  • offset - offset.
  • value - string value.
  • byteSize - [out] out sizeof string in bytes.

void WriteUnsafe(Byte* dst, Int32 offset, String value, Encoding encoding)

Summary:

writes a string value into the byte array to the given offset does not ensure capacity of the byte array.

Parameter:

  • dst - [in,out] byte array.
  • offset - offset.
  • value - string value.
  • encoding - specify the encoding to use.

void WriteUnsafe(Byte* dst, Int32 offset, String value, Encoding encoding, Int32& byteSize)

Summary:

writes a string value into the byte array to the given offset does not ensure capacity of the byte array.

Parameter:

  • dst - [in,out] byte array.
  • offset - offset.
  • value - string value.
  • encoding - specify the encoding to use.
  • byteSize - [out] out sizeof string in bytes.

void WriteUnsafe(Byte[]& bytes, Int32 offset, Decimal value)

Summary:

writes a boolean value into the byte array to the given offset does not ensure capacity of the byte array.

Parameter:

  • bytes - [in,out] byte array.
  • offset - offset.
  • value - boolean value.

void WriteUnsafe(Byte* dst, Int32 offset, Decimal value)

Summary:

writes a boolean value into the byte array to the given offset does not ensure capacity of the byte array.

Parameter:

  • dst - [in,out] byte pointer.
  • offset - offset.
  • value - boolean value.

void WriteUnsafe(Byte[]& bytes, Int32 offset, Guid value)

Summary:

writes a boolean value into the byte array to the given offset does not ensure capacity of the byte array.

Parameter:

  • bytes - [in,out] byte array.
  • offset - offset.
  • value - boolean value.

void WriteUnsafe(Byte* dst, Int32 offset, Guid value)

Summary:

writes a boolean value into the byte array to the given offset does not ensure capacity of the byte array.

Parameter:

  • dst - [in,out] byte pointer.
  • offset - offset.
  • value - boolean value.

void WriteUnsafe(Byte[]& bytes, Int32 offset, TimeSpan value)

Summary:

writes a boolean value into the byte array to the given offset does not ensure capacity of the byte array.

Parameter:

  • bytes - [in,out] byte array.
  • offset - offset.
  • value - boolean value.

void WriteUnsafe(Byte* dst, Int32 offset, TimeSpan value)

Summary:

writes a boolean value into the byte array to the given offset does not ensure capacity of the byte array.

Parameter:

  • dst - [in,out] byte pointer.
  • offset - offset.
  • value - boolean value.

void WriteUnsafe(Byte[]& bytes, Int32 offset, DateTime value)

Summary:

writes a boolean value into the byte array to the given offset does not ensure capacity of the byte array.

Parameter:

  • bytes - [in,out] byte array.
  • offset - offset.
  • value - boolean value.

void WriteUnsafe(Byte* dst, Int32 offset, DateTime value)

Summary:

writes a boolean value into the byte array to the given offset does not ensure capacity of the byte array.

Parameter:

  • dst - [in,out] byte pointer.
  • offset - offset.
  • value - boolean value.

void WriteUnsafe(Byte[]& bytes, Int32 offset, Boolean value)

Summary:

writes a boolean value into the byte array to the given offset does not ensure capacity of the byte array.

Parameter:

  • bytes - [in,out] byte array.
  • offset - offset.
  • value - boolean value.

void WriteUnsafe(Byte* dst, Int32 offset, Boolean value)

Summary:

writes a boolean value into the byte array to the given offset does not ensure capacity of the byte array.

Parameter:

  • dst - [in,out] byte pointer.
  • offset - offset.
  • value - boolean value.

void WriteUnsafe(Byte[]& bytes, Int32 offset, Byte value)

Summary:

writes a boolean value into the byte array to the given offset does not ensure capacity of the byte array.

Parameter:

  • bytes - [in,out] byte array.
  • offset - offset.
  • value - boolean value.

void WriteUnsafe(Byte* dst, Int32 offset, Byte value)

Summary:

writes a boolean value into the byte array to the given offset does not ensure capacity of the byte array.

Parameter:

  • dst - [in,out] byte pointer.
  • offset - offset.
  • value - boolean value.

void WriteUnsafe(Byte[]& bytes, Int32 offset, SByte value)

Summary:

writes a boolean value into the byte array to the given offset does not ensure capacity of the byte array.

Parameter:

  • bytes - [in,out] byte array.
  • offset - offset.
  • value - boolean value.

void WriteUnsafe(Byte* dst, Int32 offset, SByte value)

Summary:

writes a boolean value into the byte array to the given offset does not ensure capacity of the byte array.

Parameter:

  • dst - [in,out] byte pointer.
  • offset - offset.
  • value - boolean value.

void WriteUnsafe(Byte[]& bytes, Int32 offset, Byte[] value)

Summary:

writes a boolean value into the byte array to the given offset does not ensure capacity of the byte array.

Parameter:

  • bytes - [in,out] byte array.
  • offset - offset.
  • value - boolean value.

void WriteUnsafe(Byte[]& bytes, Int32 offset, Single value)

Summary:

writes a boolean value into the byte array to the given offset does not ensure capacity of the byte array.

Parameter:

  • bytes - [in,out] byte array.
  • offset - offset.
  • value - boolean value.

void WriteUnsafe(Byte* dst, Int32 offset, Single value)

Summary:

writes a boolean value into the byte array to the given offset does not ensure capacity of the byte array.

Parameter:

  • dst - [in,out] byte pointer.
  • offset - offset.
  • value - boolean value.

void WriteUnsafe(Byte[]& bytes, Int32 offset, Double value)

Summary:

writes a boolean value into the byte array to the given offset does not ensure capacity of the byte array.

Parameter:

  • bytes - [in,out] byte array.
  • offset - offset.
  • value - boolean value.

void WriteUnsafe(Byte* dst, Int32 offset, Double value)

Summary:

writes a boolean value into the byte array to the given offset does not ensure capacity of the byte array.

Parameter:

  • dst - [in,out] byte pointer.
  • offset - offset.
  • value - boolean value.

void WriteUnsafe(Byte[]& bytes, Int32 offset, Int16 value)

Summary:

writes a boolean value into the byte array to the given offset does not ensure capacity of the byte array.

Parameter:

  • bytes - [in,out] byte array.
  • offset - offset.
  • value - boolean value.

void WriteUnsafe(Byte* dst, Int32 offset, Int16 value)

Summary:

writes a boolean value into the byte array to the given offset does not ensure capacity of the byte array.

Parameter:

  • dst - [in,out] byte pointer.
  • offset - offset.
  • value - boolean value.

void WriteUnsafe(Byte[]& bytes, Int32 offset, UInt16 value)

Summary:

writes a boolean value into the byte array to the given offset does not ensure capacity of the byte array.

Parameter:

  • bytes - [in,out] byte array.
  • offset - offset.
  • value - boolean value.

void WriteUnsafe(Byte* dst, Int32 offset, UInt16 value)

Summary:

writes a boolean value into the byte array to the given offset does not ensure capacity of the byte array.

Parameter:

  • dst - [in,out] byte pointer.
  • offset - offset.
  • value - boolean value.

void WriteUnsafe(Byte[]& bytes, Int32 offset, Int32 value)

Summary:

writes a boolean value into the byte array to the given offset does not ensure capacity of the byte array.

Parameter:

  • bytes - [in,out] byte array.
  • offset - offset.
  • value - boolean value.

void WriteUnsafe(Byte* dst, Int32 offset, Int32 value)

Summary:

writes a boolean value into the byte array to the given offset does not ensure capacity of the byte array.

Parameter:

  • dst - [in,out] byte pointer.
  • offset - offset.
  • value - boolean value.

void WriteUnsafe(Byte[]& bytes, Int32 offset, UInt32 value)

Summary:

writes a boolean value into the byte array to the given offset does not ensure capacity of the byte array.

Parameter:

  • bytes - [in,out] byte array.
  • offset - offset.
  • value - boolean value.

void WriteUnsafe(Byte* dst, Int32 offset, UInt32 value)

Summary:

writes a boolean value into the byte array to the given offset does not ensure capacity of the byte array.

Parameter:

  • dst - [in,out] byte pointer.
  • offset - offset.
  • value - boolean value.

void WriteUnsafe(Byte[]& bytes, Int32 offset, Int64 value)

Summary:

writes a boolean value into the byte array to the given offset does not ensure capacity of the byte array.

Parameter:

  • bytes - [in,out] byte array.
  • offset - offset.
  • value - boolean value.

void WriteUnsafe(Byte* dst, Int32 offset, Int64 value)

Summary:

writes a boolean value into the byte array to the given offset does not ensure capacity of the byte array.

Parameter:

  • dst - [in,out] byte pointer.
  • offset - offset.
  • value - boolean value.

void WriteUnsafe(Byte[]& bytes, Int32 offset, UInt64 value)

Summary:

writes a boolean value into the byte array to the given offset does not ensure capacity of the byte array.

Parameter:

  • bytes - [in,out] byte array.
  • offset - offset.
  • value - boolean value.

void WriteUnsafe(Byte* dst, Int32 offset, UInt64 value)

Summary:

writes a boolean value into the byte array to the given offset does not ensure capacity of the byte array.

Parameter:

  • dst - [in,out] byte pointer.
  • offset - offset.
  • value - boolean value.

void WriteUnsafe(Byte[]& bytes, Int32 offset, Char value)

Summary:

writes a boolean value into the byte array to the given offset does not ensure capacity of the byte array.

Parameter:

  • bytes - [in,out] byte array.
  • offset - offset.
  • value - boolean value.

void WriteUnsafe(Byte* dst, Int32 offset, Char value)

Summary:

writes a boolean value into the byte array to the given offset does not ensure capacity of the byte array.

Parameter:

  • dst - [in,out] byte pointer.
  • offset - offset.
  • value - boolean value.

void WriteUnsafe(Byte[]& bytes, Int32 offset, String value)

Summary:

writes a boolean value into the byte array to the given offset does not ensure capacity of the byte array.

Parameter:

  • bytes - [in,out] byte array.
  • offset - offset.
  • value - boolean value.

void WriteUnsafe(Byte[]& bytes, Int32 offset, String value, Int32& byteSize)

Summary:

writes a string value into the byte array to the given offset does not ensure capacity of the byte array.

Parameter:

  • bytes - [in,out] byte array.
  • offset - offset.
  • value - string value.
  • byteSize - [out] out sizeof string in bytes.

void WriteUnsafe(Byte[]& bytes, Int32 offset, String value, Encoding encoding)

Summary:

writes a string value into the byte array to the given offset does not ensure capacity of the byte array.

Parameter:

  • bytes - [in,out] byte array.
  • offset - offset.
  • value - string value.
  • encoding - specify the encoding to use.

void WriteUnsafe(Byte[]& bytes, Int32 offset, String value, Encoding encoding, Int32& byteSize)

Summary:

writes a string value into the byte array to the given offset does not ensure capacity of the byte array.

Parameter:

  • bytes - [in,out] byte array.
  • offset - offset.
  • value - string value.
  • encoding - specify the encoding to use.
  • byteSize - [out] out sizeof string in bytes.

void WriteUnsafe(Byte* dst, Int32 offset, String value)

Summary:

writes a boolean value into the byte array to the given offset does not ensure capacity of the byte array.

Parameter:

  • dst - [in,out] byte pointer.
  • offset - offset.
  • value - boolean value.

void WriteUnsafe(Byte[]& bytes, Int32 offset, Boolean[] values, Int32& byteSize)

Summary:

writes a boolean array into the byte array to the given offset does not ensure capacity of the byte array.

Parameter:

  • bytes - [in,out] byte array.
  • offset - offset.
  • values - boolean array.
  • byteSize - [out] out sizeof bytes used.

void WriteUnsafe(Byte* dst, Int32 offset, Boolean[] values, Int32& byteSize)

Summary:

writes a boolean array into the byte array to the given offset does not ensure capacity of the byte array.

Parameter:

  • dst - [in,out] byte pointer.
  • offset - offset.
  • values - boolean array.
  • byteSize - [out] out sizeof bytes used.

void WriteUnsafe(Byte[]& bytes, Int32 offset, Byte[] values, Int32& byteSize)

Summary:

writes a boolean array into the byte array to the given offset does not ensure capacity of the byte array.

Parameter:

  • bytes - [in,out] byte array.
  • offset - offset.
  • values - boolean array.
  • byteSize - [out] out sizeof bytes used.

void WriteUnsafe(Byte* dst, Int32 offset, Byte[] values, Int32& byteSize)

Summary:

writes a boolean array into the byte array to the given offset does not ensure capacity of the byte array.

Parameter:

  • dst - [in,out] byte pointer.
  • offset - offset.
  • values - boolean array.
  • byteSize - [out] out sizeof bytes used.

void WriteUnsafe(Byte[]& bytes, Int32 offset, SByte[] values, Int32& byteSize)

Summary:

writes a boolean array into the byte array to the given offset does not ensure capacity of the byte array.

Parameter:

  • bytes - [in,out] byte array.
  • offset - offset.
  • values - boolean array.
  • byteSize - [out] out sizeof bytes used.

void WriteUnsafe(Byte* dst, Int32 offset, SByte[] values, Int32& byteSize)

Summary:

writes a boolean array into the byte array to the given offset does not ensure capacity of the byte array.

Parameter:

  • dst - [in,out] byte pointer.
  • offset - offset.
  • values - boolean array.
  • byteSize - [out] out sizeof bytes used.

void WriteUnsafe(Byte[]& bytes, Int32 offset, Single[] values, Int32& byteSize)

Summary:

writes a boolean array into the byte array to the given offset does not ensure capacity of the byte array.

Parameter:

  • bytes - [in,out] byte array.
  • offset - offset.
  • values - boolean array.
  • byteSize - [out] out sizeof bytes used.

void WriteUnsafe(Byte* dst, Int32 offset, Single[] values, Int32& byteSize)

Summary:

writes a boolean array into the byte array to the given offset does not ensure capacity of the byte array.

Parameter:

  • dst - [in,out] byte pointer.
  • offset - offset.
  • values - boolean array.
  • byteSize - [out] out sizeof bytes used.

void WriteUnsafe(Byte[]& bytes, Int32 offset, Double[] values, Int32& byteSize)

Summary:

writes a boolean array into the byte array to the given offset does not ensure capacity of the byte array.

Parameter:

  • bytes - [in,out] byte array.
  • offset - offset.
  • values - boolean array.
  • byteSize - [out] out sizeof bytes used.

void WriteUnsafe(Byte* dst, Int32 offset, Double[] values, Int32& byteSize)

Summary:

writes a boolean array into the byte array to the given offset does not ensure capacity of the byte array.

Parameter:

  • dst - [in,out] byte pointer.
  • offset - offset.
  • values - boolean array.
  • byteSize - [out] out sizeof bytes used.

void WriteUnsafe(Byte[]& bytes, Int32 offset, Int16[] values, Int32& byteSize)

Summary:

writes a boolean array into the byte array to the given offset does not ensure capacity of the byte array.

Parameter:

  • bytes - [in,out] byte array.
  • offset - offset.
  • values - boolean array.
  • byteSize - [out] out sizeof bytes used.

void WriteUnsafe(Byte* dst, Int32 offset, Int16[] values, Int32& byteSize)

Summary:

writes a boolean array into the byte array to the given offset does not ensure capacity of the byte array.

Parameter:

  • dst - [in,out] byte pointer.
  • offset - offset.
  • values - boolean array.
  • byteSize - [out] out sizeof bytes used.

void WriteUnsafe(Byte[]& bytes, Int32 offset, UInt16[] values, Int32& byteSize)

Summary:

writes a boolean array into the byte array to the given offset does not ensure capacity of the byte array.

Parameter:

  • bytes - [in,out] byte array.
  • offset - offset.
  • values - boolean array.
  • byteSize - [out] out sizeof bytes used.

void WriteUnsafe(Byte* dst, Int32 offset, UInt16[] values, Int32& byteSize)

Summary:

writes a boolean array into the byte array to the given offset does not ensure capacity of the byte array.

Parameter:

  • dst - [in,out] byte pointer.
  • offset - offset.
  • values - boolean array.
  • byteSize - [out] out sizeof bytes used.

void WriteUnsafe(Byte[]& bytes, Int32 offset, Int32[] values, Int32& byteSize)

Summary:

writes a boolean array into the byte array to the given offset does not ensure capacity of the byte array.

Parameter:

  • bytes - [in,out] byte array.
  • offset - offset.
  • values - boolean array.
  • byteSize - [out] out sizeof bytes used.

void WriteUnsafe(Byte* dst, Int32 offset, Int32[] values, Int32& byteSize)

Summary:

writes a boolean array into the byte array to the given offset does not ensure capacity of the byte array.

Parameter:

  • dst - [in,out] byte pointer.
  • offset - offset.
  • values - boolean array.
  • byteSize - [out] out sizeof bytes used.

void WriteUnsafe(Byte[]& bytes, Int32 offset, UInt32[] values, Int32& byteSize)

Summary:

writes a boolean array into the byte array to the given offset does not ensure capacity of the byte array.

Parameter:

  • bytes - [in,out] byte array.
  • offset - offset.
  • values - boolean array.
  • byteSize - [out] out sizeof bytes used.

void WriteUnsafe(Byte* dst, Int32 offset, UInt32[] values, Int32& byteSize)

Summary:

writes a boolean array into the byte array to the given offset does not ensure capacity of the byte array.

Parameter:

  • dst - [in,out] byte pointer.
  • offset - offset.
  • values - boolean array.
  • byteSize - [out] out sizeof bytes used.

void WriteUnsafe(Byte[]& bytes, Int32 offset, Int64[] values, Int32& byteSize)

Summary:

writes a boolean array into the byte array to the given offset does not ensure capacity of the byte array.

Parameter:

  • bytes - [in,out] byte array.
  • offset - offset.
  • values - boolean array.
  • byteSize - [out] out sizeof bytes used.

void WriteUnsafe(Byte* dst, Int32 offset, Int64[] values, Int32& byteSize)

Summary:

writes a boolean array into the byte array to the given offset does not ensure capacity of the byte array.

Parameter:

  • dst - [in,out] byte pointer.
  • offset - offset.
  • values - boolean array.
  • byteSize - [out] out sizeof bytes used.

void WriteUnsafe(Byte[]& bytes, Int32 offset, UInt64[] values, Int32& byteSize)

Summary:

writes a boolean array into the byte array to the given offset does not ensure capacity of the byte array.

Parameter:

  • bytes - [in,out] byte array.
  • offset - offset.
  • values - boolean array.
  • byteSize - [out] out sizeof bytes used.

void WriteUnsafe(Byte* dst, Int32 offset, UInt64[] values, Int32& byteSize)

Summary:

writes a boolean array into the byte array to the given offset does not ensure capacity of the byte array.

Parameter:

  • dst - [in,out] byte pointer.
  • offset - offset.
  • values - boolean array.
  • byteSize - [out] out sizeof bytes used.

void WriteUnsafe(Byte[]& bytes, Int32 offset, Char[] values, Int32& byteSize)

Summary:

writes a boolean array into the byte array to the given offset does not ensure capacity of the byte array.

Parameter:

  • bytes - [in,out] byte array.
  • offset - offset.
  • values - boolean array.
  • byteSize - [out] out sizeof bytes used.

void WriteUnsafe(Byte* dst, Int32 offset, Char[] values, Int32& byteSize)

Summary:

writes a boolean array into the byte array to the given offset does not ensure capacity of the byte array.

Parameter:

  • dst - [in,out] byte pointer.
  • offset - offset.
  • values - boolean array.
  • byteSize - [out] out sizeof bytes used.

void WriteUnsafe(Byte[]& bytes, Int32 offset, String[] values, Int32& byteSize)

Summary:

writes a boolean array into the byte array to the given offset does not ensure capacity of the byte array.

Parameter:

  • bytes - [in,out] byte array.
  • offset - offset.
  • values - boolean array.
  • byteSize - [out] out sizeof bytes used.

void WriteUnsafe(Byte[]& bytes, Int32 offset, Decimal[] values, Int32& byteSize)

Summary:

writes a boolean array into the byte array to the given offset does not ensure capacity of the byte array.

Parameter:

  • bytes - [in,out] byte array.
  • offset - offset.
  • values - boolean array.
  • byteSize - [out] out sizeof bytes used.

void WriteUnsafe(Byte* dst, Int32 offset, Decimal[] values, Int32& byteSize)

Summary:

writes a boolean array into the byte array to the given offset does not ensure capacity of the byte array.

Parameter:

  • dst - [in,out] byte pointer.
  • offset - offset.
  • values - boolean array.
  • byteSize - [out] out sizeof bytes used.

void WriteUnsafe(Byte[]& bytes, Int32 offset, Guid[] values, Int32& byteSize)

Summary:

writes a boolean array into the byte array to the given offset does not ensure capacity of the byte array.

Parameter:

  • bytes - [in,out] byte array.
  • offset - offset.
  • values - boolean array.
  • byteSize - [out] out sizeof bytes used.

void WriteUnsafe(Byte* dst, Int32 offset, Guid[] values, Int32& byteSize)

Summary:

writes a boolean array into the byte array to the given offset does not ensure capacity of the byte array.

Parameter:

  • dst - [in,out] byte pointer.
  • offset - offset.
  • values - boolean array.
  • byteSize - [out] out sizeof bytes used.

void WriteUnsafe(Byte[]& bytes, Int32 offset, TimeSpan[] values, Int32& byteSize)

Summary:

writes a boolean array into the byte array to the given offset does not ensure capacity of the byte array.

Parameter:

  • bytes - [in,out] byte array.
  • offset - offset.
  • values - boolean array.
  • byteSize - [out] out sizeof bytes used.

void WriteUnsafe(Byte* dst, Int32 offset, TimeSpan[] values, Int32& byteSize)

Summary:

writes a boolean array into the byte array to the given offset does not ensure capacity of the byte array.

Parameter:

  • dst - [in,out] byte pointer.
  • offset - offset.
  • values - boolean array.
  • byteSize - [out] out sizeof bytes used.

void WriteUnsafe(Byte[]& bytes, Int32 offset, DateTime[] values, Int32& byteSize)

Summary:

writes a boolean array into the byte array to the given offset does not ensure capacity of the byte array.

Parameter:

  • bytes - [in,out] byte array.
  • offset - offset.
  • values - boolean array.
  • byteSize - [out] out sizeof bytes used.

void WriteUnsafe(Byte* dst, Int32 offset, DateTime[] values, Int32& byteSize)

Summary:

writes a boolean array into the byte array to the given offset does not ensure capacity of the byte array.

Parameter:

  • dst - [in,out] byte pointer.
  • offset - offset.
  • values - boolean array.
  • byteSize - [out] out sizeof bytes used.


Clone this wiki locally