forked from nkronlage/JavaScripture
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathArrayBufferView.html
More file actions
22 lines (22 loc) · 6.35 KB
/
ArrayBufferView.html
File metadata and controls
22 lines (22 loc) · 6.35 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<!DOCTYPE html><html><head><meta charset="utf-8"><title>ArrayBufferView JavaScript API</title><meta name="description" content="Interactive API reference for the JavaScript ArrayBufferView Object. ArrayBufferView is an abstract type that is the base for the following types: DataView, Float32Array, Float64Array, Int8Array, In"><link rel="stylesheet" type="text/css" href="styles.css"><script type="text/javascript">var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-23450559-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();</script></head><body><script>if (sessionStorage.collapsed === 'true') {
document.body.classList.add('members-collapsed');
}</script><div class="topnav"><a href="/">JavaScripture</a><div class="bookmarks"><a class="bookmark contribute" href="https://github.com/nkronlage/JavaScripture">Contribute via GitHub</a> <a class="bookmark" href="/feedback">Feedback</a></div></div><div class="container"><nav class="leftnav"><div id="searchContainer"><input id="searchBox" type="text" placeholder="Search (Ctrl + S)" autocomplete="false" autofocus="autofocus"><div id="resultsBox" style="display:none;"></div></div><div id="apichooser"><a href="#" onclick="openApiChooser(); return false;"><div class="arrow"></div><span id="selectedsets"></span></a><div id="obscure"></div><div id="apisets"><ul></ul></div></div><div class="toc"><h2>ArrayBufferView</h2><div class="navgroup"><div class="group collapsed"><a href="#InstanceProperties" onclick="expandoClicked(this.parentNode); return false;"><div class="arrow"></div>Instance Properties</a><div class="subgroup"><a href="#buffer">buffer</a><a href="#byteLength">byteLength</a><a href="#byteOffset">byteOffset</a></div></div></div><h2>TypedArrays API</h2><div id="related-apis" class="navgroup"></div><h2>All API</h2><div id="rootObjs" class="navgroup"><span class="empty">No API set selected.</span></div></div></nav><div class="content"><h1 class="declaration"><span class="hide">JavaScript</span> <span class="object">ArrayBufferView</span> <span class="type">: <a href="/Object">Object</a></span></h1><div class="metadata"></div><div class="objectdescription">ArrayBufferView is an abstract type that is the base for the following types: <a href="DataView"><code>DataView</code></a>, <a href="Float32Array"><code>Float32Array</code></a>, <a href="Float64Array"><code>Float64Array</code></a>, <a href="Int8Array"><code>Int8Array</code></a>, <a href="Int16Array"><code>Int16Array</code></a>, <a href="Int32Array"><code>Int32Array</code></a>, <a href="Uint8Array"><code>Uint8Array</code></a>, <a href="Uint8ClampedArray"><code>Uint8ClampedArray</code></a>, <a href="Uint16Array"><code>Uint16Array</code></a>, <a href="Uint32Array"><code>Uint32Array</code></a>.<div class="membermetadata"><a href="http://www.khronos.org/registry/typedarray/specs/latest/#6" class="spec">Spec</a></div></div><div><a name="InstanceProperties"></a><h2>Instance Properties</h2><div class="member"><div class="expand-members" title="Toggle showing all descriptions and examples"></div><a name="buffer"></a><div class="declaration"><span class="membername primary">buffer</span> : <a class="membertype" href="/ArrayBuffer">ArrayBuffer</a> <span class="metadata">readonly</span></div><div class="member-body"><p class="description">Returns the underlying buffer for <code>this</code>.</p><div class="example"><div class="codePanel"><h4>Example:</h4><textarea class="code" rows="12" cols="60" wrap="off">
var buffer = new ArrayBuffer(12);
var x = new DataView(buffer);
console.log(x.buffer === buffer);
</textarea><a onclick='executeExample(this.parentNode.parentNode, "ArrayBufferView.buffer"); return false' href="#" class="run">Run</a></div><div class="resultsPanel"><h4>Results:</h4><div style="position: relative"><div class="errormessage" style="display: none"></div><pre class="results"> </pre></div></div></div><p></p></div></div><div class="member"><div class="expand-members" title="Toggle showing all descriptions and examples"></div><a name="byteLength"></a><div class="declaration"><span class="membername primary">byteLength</span> : <a class="membertype" href="/Number">Number</a> <span class="metadata">readonly</span></div><div class="member-body"><p class="description">The length of <code>this</code> in bytes.</p><div class="example"><div class="codePanel"><h4>Example:</h4><textarea class="code" rows="12" cols="60" wrap="off">
var buffer = new ArrayBuffer(12);
var x = new DataView(buffer, 4, 2);
console.log(x.byteLength);
</textarea><a onclick='executeExample(this.parentNode.parentNode, "ArrayBufferView.byteLength"); return false' href="#" class="run">Run</a></div><div class="resultsPanel"><h4>Results:</h4><div style="position: relative"><div class="errormessage" style="display: none"></div><pre class="results"> </pre></div></div></div><p></p></div></div><div class="member"><div class="expand-members" title="Toggle showing all descriptions and examples"></div><a name="byteOffset"></a><div class="declaration"><span class="membername primary">byteOffset</span> : <a class="membertype" href="/Number">Number</a> <span class="metadata">readonly</span></div><div class="member-body"><p class="description">The offset into <code>this.buffer</code> where the view starts.</p><div class="example"><div class="codePanel"><h4>Example:</h4><textarea class="code" rows="12" cols="60" wrap="off">
var buffer = new ArrayBuffer(12);
var x = new DataView(buffer, 4, 2);
console.log(x.byteOffset);
</textarea><a onclick='executeExample(this.parentNode.parentNode, "ArrayBufferView.byteOffset"); return false' href="#" class="run">Run</a></div><div class="resultsPanel"><h4>Results:</h4><div style="position: relative"><div class="errormessage" style="display: none"></div><pre class="results"> </pre></div></div></div><p></p></div></div></div><div class="bottomnav"><a href="/">home</a> <a href="/license">license</a> <a href="https://github.com/nkronlage/JavaScripture">contribute</a> <a href="/feedback">feedback</a></div><div class="copyright">Copyright © JavaScripture Contributors</div></div></div></body><script src="javascripture.js"></script></html>