FSharpPlus


BitConverter Type

Static members

Static member Description

BitConverter.GetBytes(value, isLittleEndian)

Full Usage: BitConverter.GetBytes(value, isLittleEndian)

Parameters:
    value : Guid
    isLittleEndian : bool

Returns: byte[]

Converts a Guid into an array of bytes with length eight.

value : Guid
isLittleEndian : bool
Returns: byte[]

BitConverter.GetBytes(value, isLittleEndian)

Full Usage: BitConverter.GetBytes(value, isLittleEndian)

Parameters:
    value : float
    isLittleEndian : bool

Returns: byte[]

Converts a double into an array of bytes with length eight.

value : float
isLittleEndian : bool
Returns: byte[]

BitConverter.GetBytes(value, isLittleEndian)

Full Usage: BitConverter.GetBytes(value, isLittleEndian)

Parameters:
    value : float32
    isLittleEndian : bool

Returns: byte[]

Converts a float into an array of bytes with length four.

value : float32
isLittleEndian : bool
Returns: byte[]

BitConverter.GetBytes(value, isLittleEndian)

Full Usage: BitConverter.GetBytes(value, isLittleEndian)

Parameters:
    value : uint64
    isLittleEndian : bool

Returns: byte[]

Converts an unsigned long into an array of bytes with length eight.

value : uint64
isLittleEndian : bool
Returns: byte[]

BitConverter.GetBytes(value, isLittleEndian)

Full Usage: BitConverter.GetBytes(value, isLittleEndian)

Parameters:
    value : uint32
    isLittleEndian : bool

Returns: byte[]

Converts an uint into an array of bytes with length four.

value : uint32
isLittleEndian : bool
Returns: byte[]

BitConverter.GetBytes(value, isLittleEndian)

Full Usage: BitConverter.GetBytes(value, isLittleEndian)

Parameters:
    value : uint16
    isLittleEndian : bool

Returns: byte[]

Converts an ushort into an array of bytes with length two.

value : uint16
isLittleEndian : bool
Returns: byte[]

BitConverter.GetBytes(value, isLittleEndian)

Full Usage: BitConverter.GetBytes(value, isLittleEndian)

Parameters:
    value : int64
    isLittleEndian : bool

Returns: byte[]

Converts a long into an array of bytes with length eight.

value : int64
isLittleEndian : bool
Returns: byte[]

BitConverter.GetBytes(value, isLittleEndian)

Full Usage: BitConverter.GetBytes(value, isLittleEndian)

Parameters:
    value : int
    isLittleEndian : bool

Returns: byte[]

Converts an int into an array of bytes with length four.

value : int
isLittleEndian : bool
Returns: byte[]

BitConverter.GetBytes(value, isLittleEndian)

Full Usage: BitConverter.GetBytes(value, isLittleEndian)

Parameters:
    value : int16
    isLittleEndian : bool

Returns: byte[]

Converts a short into an array of bytes with length two.

value : int16
isLittleEndian : bool
Returns: byte[]

BitConverter.GetBytes(value, isLittleEndian)

Full Usage: BitConverter.GetBytes(value, isLittleEndian)

Parameters:
    value : char
    isLittleEndian : bool

Returns: byte[]

Converts a char into an array of bytes with length two.

value : char
isLittleEndian : bool
Returns: byte[]

BitConverter.GetBytes(value)

Full Usage: BitConverter.GetBytes(value)

Parameters:
    value : bool

Returns: byte[]

Converts a byte into an array of bytes with length one.

value : bool
Returns: byte[]

BitConverter.ToChar(value, startIndex, isLittleEndian)

Full Usage: BitConverter.ToChar(value, startIndex, isLittleEndian)

Parameters:
    value : byte[]
    startIndex : int
    isLittleEndian : bool

Returns: char

Converts an array of bytes into a char.

value : byte[]
startIndex : int
isLittleEndian : bool
Returns: char

BitConverter.ToDouble(value, startIndex, isLittleEndian)

Full Usage: BitConverter.ToDouble(value, startIndex, isLittleEndian)

Parameters:
    value : byte[]
    startIndex : int
    isLittleEndian : bool

Returns: float

Converts an array of bytes into a double.

value : byte[]
startIndex : int
isLittleEndian : bool
Returns: float

BitConverter.ToGuid(value, startIndex, isLittleEndian)

Full Usage: BitConverter.ToGuid(value, startIndex, isLittleEndian)

Parameters:
    value : byte[]
    startIndex : int
    isLittleEndian : bool

Returns: Guid
value : byte[]
startIndex : int
isLittleEndian : bool
Returns: Guid

BitConverter.ToInt16(value, startIndex, isLittleEndian)

Full Usage: BitConverter.ToInt16(value, startIndex, isLittleEndian)

Parameters:
    value : byte[]
    startIndex : int
    isLittleEndian : bool

Returns: int16

Converts an array of bytes into a short.

value : byte[]
startIndex : int
isLittleEndian : bool
Returns: int16

BitConverter.ToInt32(value, startIndex, isLittleEndian)

Full Usage: BitConverter.ToInt32(value, startIndex, isLittleEndian)

Parameters:
    value : byte[]
    startIndex : int
    isLittleEndian : bool

Returns: int

Converts an array of bytes into an int.

value : byte[]
startIndex : int
isLittleEndian : bool
Returns: int

BitConverter.ToInt64(value, startIndex, isLittleEndian)

Full Usage: BitConverter.ToInt64(value, startIndex, isLittleEndian)

Parameters:
    value : byte[]
    startIndex : int
    isLittleEndian : bool

Returns: int64

Converts an array of bytes into a long.

value : byte[]
startIndex : int
isLittleEndian : bool
Returns: int64

BitConverter.ToSingle(value, startIndex, isLittleEndian)

Full Usage: BitConverter.ToSingle(value, startIndex, isLittleEndian)

Parameters:
    value : byte[]
    startIndex : int
    isLittleEndian : bool

Returns: float32

Converts an array of bytes into a float.

value : byte[]
startIndex : int
isLittleEndian : bool
Returns: float32

BitConverter.ToString(value, startIndex)

Full Usage: BitConverter.ToString(value, startIndex)

Parameters:
    value : byte[]
    startIndex : int

Returns: string

Converts an array of bytes into a String.

value : byte[]
startIndex : int
Returns: string

BitConverter.ToString(value)

Full Usage: BitConverter.ToString(value)

Parameters:
    value : byte[]

Returns: string

Converts an array of bytes into a String.

value : byte[]
Returns: string

BitConverter.ToString(value, startIndex, length)

Full Usage: BitConverter.ToString(value, startIndex, length)

Parameters:
    value : byte[]
    startIndex : int
    length : int

Returns: string

Converts an array of bytes into a String.

value : byte[]
startIndex : int
length : int
Returns: string

BitConverter.ToUInt16(value, startIndex, isLittleEndian)

Full Usage: BitConverter.ToUInt16(value, startIndex, isLittleEndian)

Parameters:
    value : byte[]
    startIndex : int
    isLittleEndian : bool

Returns: uint16

Converts an array of bytes into an ushort.

value : byte[]
startIndex : int
isLittleEndian : bool
Returns: uint16

BitConverter.ToUInt32(value, startIndex, isLittleEndian)

Full Usage: BitConverter.ToUInt32(value, startIndex, isLittleEndian)

Parameters:
    value : byte[]
    startIndex : int
    isLittleEndian : bool

Returns: uint32

Converts an array of bytes into an uint.

value : byte[]
startIndex : int
isLittleEndian : bool
Returns: uint32

BitConverter.ToUInt64(value, startIndex, isLittleEndian)

Full Usage: BitConverter.ToUInt64(value, startIndex, isLittleEndian)

Parameters:
    value : byte[]
    startIndex : int
    isLittleEndian : bool

Returns: uint64

Converts an array of bytes into an unsigned long.

value : byte[]
startIndex : int
isLittleEndian : bool
Returns: uint64