public interface JsArrayBuffer extends JsObject
An array buffer object can be passed between Java and JavaScript as a method argument or a return value. The object lifetime is bound to the lifetime of the frame this object belongs to. When the owner frame is unloaded, all the JavaScript objects are automatically disposed.
An attempt to access a disposed JavaScript object will result in
IllegalStateException
.
Modifier and Type | Method and Description |
---|---|
byte[] |
bytes()
Returns a byte array containing the bytes of this array buffer.
|
long |
length()
Returns the length of this array buffer in bytes.
|
call, close, frame, hasProperty, ownPropertyNames, property, propertyNames, putProperty, removeProperty
long length()
ObjectClosedException
- when the JavaScript object is already disposed or invalidbyte[] bytes()
ObjectClosedException
- when the JavaScript object is already disposed or invalid