/* * Copyright (C)2005-2013 Haxe Foundation * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, merge, publish, distribute, sublicense, * and/or sell copies of the Software, and to permit persons to whom the * Software is furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * DEALINGS IN THE SOFTWARE. */ // This file is generated, do not edit! package js.html; /**
DataView
is not yet implemented in Gecko. It is implemented in Chrome 9.An ArrayBuffer
is a useful object for representing an arbitrary chunk of data. In many cases, such data will be read from disk or from the network, and will not follow the alignment restrictions that are imposed on the Typed Array Views described earlier. In addition, the data will often be heterogeneous in nature and have a defined byte order.
The DataView
view provides a low-level interface for reading such data from and writing it to an ArrayBuffer
.
Returns a new DataView
object using the passed ArrayBuffer for its storage.
DataView DataView( ArrayBuffer buffer, optional unsigned long byteOffset, optional unsigned long byteLength );
buffer
ArrayBuffer
to use as the storage for the new DataView
object.byteOffset
Optional
byteLength
Optional
A new DataView
object representing the specified data buffer.
INDEX_SIZE_ERR
byteOffset
and byteLength
result in the specified view extending past the end of the buffer.Gets a signed 8-bit integer at the specified byte offset from the start of the view.
offset
INDEX_SIZE_ERR
byteOffset
is set such as it would read beyond the end of the viewGets an unsigned 8-bit integer at the specified byte offset from the start of the view.
offset
INDEX_SIZE_ERR
byteOffset
is set such as it would read beyond the end of the view