JSTypedArray<T> structure
C#
public struct JSTypedArray<T> : IJSValue<JSTypedArray>
where T : struct
Public Members
name | description |
---|---|
JSTypedArray(…) | Creates a new typed array of specified length, with newly allocated memory. (5 constructors) |
Item { get; set; } | |
Length { get; } | |
Memory { get; } | Gets the typed-array values as memory, without copying. |
Span { get; } | Gets the typed-array values as a span, without copying. |
As<TOther>() | Tries to create a T struct from this instance. It returns null if the T struct cannot be created. |
AsUnchecked<TOther>() | Creates a T struct from this instance without checking the enclosed handle type. It must be used only when the handle type is known to be correct. |
CastTo<TOther>() | Creates a T struct from this instance. It throws InvalidCastException in case of failure. |
CopyTo(…) | Copies the typed-array data into an array. |
Equals(…) | Compares two JS values using JS "strict" equality. |
override Equals(…) | |
GetEnumerator() | |
override GetHashCode() | |
Is<TOther>() | Checks if the T struct can be created from this instance`. |
ToArray() | Copies the typed-array data into a new array and returns the array. |
operator == | |
explicit operator | (2 operators) |
implicit operator | |
operator != |
See Also
- interface IJSValue<TSelf>
- namespace Microsoft.JavaScript.NodeApi
- JSTypedArray.cs