Struct Size
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
valuenintThe size value.
Fields
Length
Gets the length in bytes of the Size structure.
public const int Length = 8
Field Value
Properties
Value
Gets the size value.
public nint Value { get; }
Property Value
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
valueSizeThe value to convert.
Returns
implicit operator Size(int)
Converts an int to a size.
public static implicit operator Size(int value)
Parameters
valueintThe value to convert.