Salesforce B2C Commerce 23.6
>
B2C Commerce API
>
B2C Commerce Script
>
TopLevel
Overview
API Versioning
Deprecated
TopLevel
Class ArrayBuffer
Object
ArrayBuffer
The ArrayBuffer represents a generic array of bytes with fixed length.
To access and manipulate content, use
DataView
or a typed array.
API Versioned:
From version 21.2.
Properties
byteLength :
Number
The number of bytes in the array buffer.
Constructor Summary
ArrayBuffer
()
Creates an empty array buffer.
ArrayBuffer
(byteLength :
Number
)
Creates an array buffer with the given number of bytes.
Method Summary
static
isView
(object :
Object
) : boolean
Returns if the given object is one of the views for an ArrayBuffer, such as a typed array or a
DataView
.
slice
(begin :
Number
, end :
Number
) :
ArrayBuffer
Returns a new array buffer with a copy of the data of this buffer.
Methods inherited from class
Object
assign
,
create
,
create
,
defineProperties
,
defineProperty
,
entries
,
freeze
,
fromEntries
,
getOwnPropertyDescriptor
,
getOwnPropertyNames
,
getOwnPropertySymbols
,
getPrototypeOf
,
hasOwnProperty
,
is
,
isExtensible
,
isFrozen
,
isPrototypeOf
,
isSealed
,
keys
,
preventExtensions
,
propertyIsEnumerable
,
seal
,
setPrototypeOf
,
toLocaleString
,
toString
,
valueOf
,
values
Constructor Detail
ArrayBuffer
public
ArrayBuffer
()
Creates an empty array buffer.
ArrayBuffer
public
ArrayBuffer
(byteLength :
Number
)
Creates an array buffer with the given number of bytes.
Parameters:
byteLength
-
The number of bytes.
Method Detail
isView
static
isView
(object :
Object
) : boolean
Returns if the given object is one of the views for an ArrayBuffer, such as a typed array or a
DataView
.
Parameters:
object
-
The object to check.
Returns:
true
if the passed object is a view to an array buffer else return false.
slice
slice
(begin :
Number
, end :
Number
) :
ArrayBuffer
Returns a new array buffer with a copy of the data of this buffer.
Parameters:
begin
-
Optional. The first included element.
end
-
Optional. The index of the end. This element is not included.
Returns:
The new array object.
© Copyright 2000-2023, salesforce.com inc. All rights reserved. Various trademarks held by their respective owners.
X
Privacy Update:
We use cookies to make interactions with our websites and services easy and meaningful, to better understand how they are used. By continuing to use this site you are giving us your consent to do this.
Privacy Policy.