Class ArrayBuffer

Class ArrayBuffer

Namespace: Aspose.Html
Assembly: Aspose.HTML.dll (25.2.0)

The ArrayBuffer object is used to represent a generic, fixed-length raw binary data buffer.

[DOMName("ArrayBuffer")]
[DOMObject]
[ComVisible(true)]
public class ArrayBuffer : DOMObject, INotifyPropertyChanged

Inheritance

objectDOMObjectArrayBuffer

Implements

INotifyPropertyChanged

Inherited Members

DOMObject.GetPlatformType(), object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Constructors

ArrayBuffer(int)

Initializes a new instance of the Aspose.Html.ArrayBuffer class.

public ArrayBuffer(int length)

Parameters

length int

The size, in bytes, of the array buffer to create.

ArrayBuffer(byte[])

Initializes a new instance of the Aspose.Html.ArrayBuffer class.

public ArrayBuffer(byte[] data)

Parameters

data byte[]

The raw binary data.

Properties

ByteLength

The byteLength accessor property represents the length of an ArrayBuffer in bytes.

[DOMName("byteLength")]
public int ByteLength { get; }

Property Value

int

this[int]

Gets or sets the System.Byte at the specified index.

public byte this[int index] { get; set; }

Property Value

byte

Operators

explicit operator byte[](ArrayBuffer)

Performs an explicit conversion from Aspose.Html.ArrayBuffer to System.Byte[].

public static explicit operator byte[](ArrayBuffer value)

Parameters

value ArrayBuffer

The value.

Returns

byte[]

The result of the conversion.