Float32Array Class

Float32Array class

Represents an array of 32-bit floating point numbers (corresponding to the C float data type) in the platform byte order.

public class Float32Array : TypedArray<float>

Constructors

NameDescription
Float32Array(ArrayBuffer)Initializes a new instance of the Float32Array class.
Float32Array(float[])Initializes a new instance of the Float32Array class.
Float32Array(int)Initializes a new instance of the Float32Array class.
Float32Array(ArrayBuffer, int)Initializes a new instance of the Float32Array class.
Float32Array(ArrayBuffer, int, int)Initializes a new instance of the Float32Array class.

Properties

NameDescription
Buffer { get; }Gets the ArrayBuffer referenced by this instance.
ByteLength { get; }Gets the byteLength accessor property represents the length of an ArrayBuffer in bytes.
ByteOffset { get; }Gets the byteOffset from the start of referenced ArrayBuffer.
override Item { get; set; }Gets or sets the Single at the specified index.
Length { get; }Gets the length of a typed array.

Methods

NameDescription
virtual GetPlatformType()This method is used to retrieve the ECMAScript object .

Fields

NameDescription
static readonly BYTES_PER_ELEMENTThe property represents the size in bytes of each element in an typed array.

See Also