"Fossies" - the Fresh Open Source Software Archive

Member "scala-js-1.3.1/library/src/main/scala/scala/scalajs/js/typedarray/ArrayBufferView.scala" (14 Nov 2020, 829 Bytes) of package /linux/www/scala-js-1.3.1.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Scala source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 /*
    2  * Scala.js (https://www.scala-js.org/)
    3  *
    4  * Copyright EPFL.
    5  *
    6  * Licensed under Apache License 2.0
    7  * (https://www.apache.org/licenses/LICENSE-2.0).
    8  *
    9  * See the NOTICE file distributed with this work for
   10  * additional information regarding copyright ownership.
   11  */
   12 
   13 package scala.scalajs.js.typedarray
   14 
   15 import scala.scalajs.js
   16 
   17 /** <span class="badge badge-ecma6" style="float: right;">ECMAScript 6</span>
   18  *  An ArrayBufferView allows accessing the data of an [[ArrayBuffer]]
   19  */
   20 @js.native
   21 trait ArrayBufferView extends js.Object {
   22   /** The underlying buffer of this ArrayBufferView */
   23   val buffer: ArrayBuffer = js.native
   24 
   25   /** The number of bytes of this ArrayBufferView */
   26   val byteLength: Int = js.native
   27 
   28   /** The offset of this ArrayBufferView in the underlying buffer */
   29   val byteOffset: Int = js.native
   30 }