diff options
author | Haoyi Li <haoyi@haoyi-mbp.corp.dropbox.com> | 2014-11-26 00:50:50 -0800 |
---|---|---|
committer | Haoyi Li <haoyi@haoyi-mbp.corp.dropbox.com> | 2014-11-26 00:50:50 -0800 |
commit | 88595a41e3ec13c1a516e847fe3d0b279facf3fc (patch) | |
tree | 4f03b902de7b81fa2e32792e84b680038345e761 /examples/scala-js/library/src/main/scala/scala/scalajs/js/typedarray/TypedArray.scala | |
parent | 82773a11c99d260e97ca63356bfb7b417599b1e9 (diff) | |
download | hands-on-scala-js-88595a41e3ec13c1a516e847fe3d0b279facf3fc.tar.gz hands-on-scala-js-88595a41e3ec13c1a516e847fe3d0b279facf3fc.tar.bz2 hands-on-scala-js-88595a41e3ec13c1a516e847fe3d0b279facf3fc.zip |
killed
Diffstat (limited to 'examples/scala-js/library/src/main/scala/scala/scalajs/js/typedarray/TypedArray.scala')
-rw-r--r-- | examples/scala-js/library/src/main/scala/scala/scalajs/js/typedarray/TypedArray.scala | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/examples/scala-js/library/src/main/scala/scala/scalajs/js/typedarray/TypedArray.scala b/examples/scala-js/library/src/main/scala/scala/scalajs/js/typedarray/TypedArray.scala deleted file mode 100644 index 4e33b5d..0000000 --- a/examples/scala-js/library/src/main/scala/scala/scalajs/js/typedarray/TypedArray.scala +++ /dev/null @@ -1,46 +0,0 @@ -package scala.scalajs.js.typedarray - -import scala.scalajs.js -import scala.scalajs.js.annotation.JSBracketAccess - -trait TypedArray[T, Repr] extends ArrayBufferView { - - /** The number of elements in this TypedArray */ - val length: Int = js.native - - /** Retrieve element at index */ - @JSBracketAccess - def apply(index: Int): T = js.native - - /** Set element at index */ - @JSBracketAccess - def update(index: Int, value: T): Unit = js.native - - /** Retrieve element at index */ - @JSBracketAccess - def get(index: Int): T = js.native - - /** Set element at index */ - @JSBracketAccess - def set(index: Int, value: T): Unit = js.native - - /** Set the values of typedArray in this TypedArray */ - def set(typedArray: TypedArray[_, _]): Unit = js.native - - /** Set the values of typedArray in this TypedArray at given offset */ - def set(typedArray: TypedArray[_, _], offset: Int): Unit = js.native - - /** Set the values from array in this TypedArray */ - def set(array: js.Array[_]): Unit = js.native - - /** Set the values from array in this TypedArray at given offset */ - def set(array: js.Array[_], offset: Int): Unit = js.native - - /** Create a new TypedArray view of this TypedArray at given location */ - def subarray(begin: Int, end: Int = ???): Repr = js.native - -} - -trait TypedArrayStatic extends js.Object { - val BYTES_PER_ELEMENT: Int = js.native -} |