Class ArrayBuffer
Class ArrayBuffer
Namespace: Aspose.Html
Assembly: Aspose.HTML.dll (25.1.0)
ArrayBuffer 对象用于表示通用的固定长度原始二进制数据缓冲区。
[ComVisible(true)]
[DOMObject]
[DOMName("ArrayBuffer")]
public class ArrayBuffer : DOMObject, INotifyPropertyChanged
继承
object ← DOMObject ← ArrayBuffer
实现
继承成员
DOMObject.GetPlatformType(), object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
构造函数
ArrayBuffer(int)
初始化 Aspose.Html.ArrayBuffer 类的新实例。
public ArrayBuffer(int length)
参数
length
int
要创建的数组缓冲区的大小(以字节为单位)。
ArrayBuffer(byte[])
初始化 Aspose.Html.ArrayBuffer 类的新实例。
public ArrayBuffer(byte[] data)
参数
data
byte[]
原始二进制数据。
属性
ByteLength
byteLength 访问器属性表示 ArrayBuffer 的长度(以字节为单位)。
[DOMName("byteLength")]
public int ByteLength { get; }
属性值
this[int]
获取或设置指定索引处的 System.Byte。
public byte this[int index] { get; set; }
属性值
运算符
explicit operator byte[](ArrayBuffer)
执行从 Aspose.Html.ArrayBuffer 到 System.Byte[] 的显式转换。
public static explicit operator byte[](ArrayBuffer value)
参数
value
ArrayBuffer
值。
返回
byte[]
转换的结果。