File tree Expand file tree Collapse file tree 2 files changed +36
-0
lines changed Expand file tree Collapse file tree 2 files changed +36
-0
lines changed Original file line number Diff line number Diff line change 1+ <!DOCTYPE html>
2+ < html >
3+ < head lang ="en ">
4+ < meta charset ="UTF-8 ">
5+ < title > </ title >
6+ </ head >
7+ < body >
8+ < script type ="text/javascript " src ="07-TypedArrays.js "> </ script >
9+ </ body >
10+ </ html >
Original file line number Diff line number Diff line change 1+ let length = 5 ;
2+ let int16 = new Int16Array ( length ) ;
3+
4+ let array16 = [ ] ;
5+ array16 . length = length ;
6+
7+ for ( let i = 0 ; i < length ; i ++ ) {
8+ int16 [ i ] = i + 1 ;
9+ }
10+
11+ console . log ( int16 ) ;
12+
13+
14+ //Int8Array();
15+ //Uint8Array();
16+ //Uint8ClampedArray();
17+ //Int16Array();
18+ //Uint16Array();
19+ //Int32Array();
20+ //Uint32Array();
21+ //Float32Array();
22+ //Float64Array();
23+
24+
25+ //http://www.html5rocks.com/en/tutorials/webgl/typed_arrays/
26+ //http://www.i-programmer.info/programming/javascript/6135-javascript-data-structures-typed-arrays.html
You can’t perform that action at this time.
0 commit comments