Class NativeDataView

All Implemented Interfaces:
Serializable, ConstProperties, DebuggableObject, Scriptable, SymbolScriptable

public class NativeDataView extends NativeArrayBufferView
This class represents the JavaScript "DataView" interface, which allows direct manipulations of the bytes in a NativeArrayBuffer. Java programmers would be best off getting the underling "byte[]" array from the NativeArrayBuffer and manipulating it directly, perhaps using the "ByteIo" class as a helper.
See Also:
  • Field Details

  • Constructor Details

    • NativeDataView

      public NativeDataView()
    • NativeDataView

      public NativeDataView(NativeArrayBuffer ab, int offset, int length)
  • Method Details

    • getClassName

      public String getClassName()
      Description copied from class: ScriptableObject
      Return the name of the class.

      This is typically the same name as the constructor. Classes extending ScriptableObject must implement this abstract method.

      Specified by:
      getClassName in interface Scriptable
      Specified by:
      getClassName in class ScriptableObject
    • init

      public static Object init(Context cx, Scriptable scope, boolean sealed)
    • isDataViewOutOfBounds

      public boolean isDataViewOutOfBounds()