Int32Array.hx 3.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. /*
  2. * Copyright (C)2005-2018 Haxe Foundation
  3. *
  4. * Permission is hereby granted, free of charge, to any person obtaining a
  5. * copy of this software and associated documentation files (the "Software"),
  6. * to deal in the Software without restriction, including without limitation
  7. * the rights to use, copy, modify, merge, publish, distribute, sublicense,
  8. * and/or sell copies of the Software, and to permit persons to whom the
  9. * Software is furnished to do so, subject to the following conditions:
  10. *
  11. * The above copyright notice and this permission notice shall be included in
  12. * all copies or substantial portions of the Software.
  13. *
  14. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  15. * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  16. * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  17. * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  18. * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  19. * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
  20. * DEALINGS IN THE SOFTWARE.
  21. */
  22. // This file is generated from typedarray.webidl. Do not edit!
  23. package js.html;
  24. @:native("Int32Array")
  25. extern class Int32Array implements ArrayBufferView implements ArrayAccess<Int>
  26. {
  27. static inline var BYTES_PER_ELEMENT : Int = 4;
  28. @:pure
  29. static function of( items : haxe.extern.Rest<Array<Dynamic>> ) : Int32Array;
  30. @:pure
  31. static function from( source : Array<Int>, ?mapFn : Int -> Int -> Int, ?thisArg : Dynamic ) : Int32Array;
  32. @:native("BYTES_PER_ELEMENT")
  33. var BYTES_PER_ELEMENT_(default,null) : Int;
  34. var length(default,null) : Int;
  35. var buffer(default,null) : ArrayBuffer;
  36. var byteOffset(default,null) : Int;
  37. var byteLength(default,null) : Int;
  38. /** @throws DOMError */
  39. @:overload( function( length : Int ) : Void {} )
  40. @:overload( function( array : Int32Array ) : Void {} )
  41. @:overload( function( array : Array<Int> ) : Void {} )
  42. function new( buffer : ArrayBuffer, ?byteOffset : Int, ?length : Int ) : Void;
  43. @:overload( function( array : Int32Array, ?offset : Int ) : Void {} )
  44. function set( array : Array<Int>, ?offset : Int ) : Void;
  45. function copyWithin( target : Int, start : Int, ?end : Int ) : Int32Array;
  46. function every( callback : Int -> Int -> Int32Array -> Bool, ?thisArg : Dynamic ) : Bool;
  47. function fill( value : Int, ?start : Int, ?end : Int ) : Int32Array;
  48. function filter( callbackfn : Int -> Int -> Int32Array -> Dynamic, ?thisArg : Dynamic ) : Int32Array;
  49. function find( predicate : Int -> Int -> Int32Array -> Bool, ?thisArg : Dynamic ) : Dynamic;
  50. function findIndex( predicate : Int -> Int -> Int32Array -> Bool, ?thisArg : Dynamic ) : Int;
  51. function forEach( callbackfn : Int -> Int -> Int32Array -> Void, ?thisArg : Dynamic ) : Void;
  52. function indexOf( searchElement : Int, ?fromIndex : Int ) : Int;
  53. function join( ?separator : String ) : String;
  54. function lastIndexOf( searchElement : Int, ?fromIndex : Int ) : Int;
  55. function map( callbackfn : Int -> Int -> Int32Array -> Int, ?thisArg : Dynamic ) : Int32Array;
  56. @:overload( function( callbackfn : Int -> Int -> Int -> Int32Array -> Int ) : Int {} )
  57. function reduce( callbackfn : Dynamic -> Int -> Int -> Int32Array -> Dynamic, initialValue : Dynamic ) : Dynamic;
  58. @:overload( function( callbackfn : Int -> Int -> Int -> Int32Array -> Int ) : Int {} )
  59. function reduceRight( callbackfn : Dynamic -> Int -> Int -> Int32Array -> Dynamic, initialValue : Dynamic ) : Dynamic;
  60. function reverse() : Int32Array;
  61. function slice( ?start : Int, ?end : Int ) : Int32Array;
  62. function some( callbackfn : Int -> Int -> Int32Array -> Bool, ?thisArg : Dynamic ) : Bool;
  63. function sort( ?compareFn : Int -> Int -> Int ) : Int32Array;
  64. function subarray( begin : Int, ?end : Int ) : Int32Array;
  65. }