Table of Contents

Struct Size

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

Represents a size which is represented in memory like an std::size_t from the C++ standard library.

public readonly struct Size
Inherited Members

Constructors

Size(nint)

Initializes a new instance of the Size struct.

public Size(nint value)

Parameters

value nint

The size value.

Fields

Length

Gets the length in bytes of the Size structure.

public const int Length = 8

Field Value

int

Properties

Value

Gets the size value.

public nint Value { get; }

Property Value

nint

Methods

ToInt32()

Converts the size to an int.

public int ToInt32()

Returns

int

The converted value.

Operators

explicit operator int(Size)

Converts the size to an int.

public static explicit operator int(Size value)

Parameters

value Size

The value to convert.

Returns

int

implicit operator Size(int)

Converts an int to a size.

public static implicit operator Size(int value)

Parameters

value int

The value to convert.

Returns

Size