Table of Contents

Struct BlittableBoolean

Namespace
SampSharp.OpenMp.Core
Assembly
SampSharp.OpenMp.Core.dll

Represents a blittable boolean value. That is, a boolean value that is represented in memory as a single byte.

public readonly struct BlittableBoolean : IEquatable<BlittableBoolean>
Implements
Inherited Members

Constructors

BlittableBoolean(bool)

Represents a blittable boolean value. That is, a boolean value that is represented in memory as a single byte.

public BlittableBoolean(bool value)

Parameters

value bool

The boolean value

Methods

Equals(BlittableBoolean)

public bool Equals(BlittableBoolean other)

Parameters

other BlittableBoolean

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

operator ==(BlittableBoolean, BlittableBoolean)

Compares two BlittableBoolean values for equality.

public static bool operator ==(BlittableBoolean lhs, BlittableBoolean rhs)

Parameters

lhs BlittableBoolean

The left hand side value.

rhs BlittableBoolean

The right hand side value.

Returns

bool

The result of the comparison.

implicit operator bool(BlittableBoolean)

Implicitly converts a BlittableBoolean to a bool.

public static implicit operator bool(BlittableBoolean b)

Parameters

b BlittableBoolean

The value to convert.

Returns

bool

implicit operator BlittableBoolean(bool)

Implicitly converts a bool to a BlittableBoolean.

public static implicit operator BlittableBoolean(bool b)

Parameters

b bool

The value to convert.

Returns

BlittableBoolean

operator !=(BlittableBoolean, BlittableBoolean)

Compares two BlittableBoolean values for inequality.

public static bool operator !=(BlittableBoolean lhs, BlittableBoolean rhs)

Parameters

lhs BlittableBoolean

The left hand side value.

rhs BlittableBoolean

The right hand side value.

Returns

bool

The result of the comparison.