index.js
function BufferView(buffer, byteOffset, byteLength) {
    if (typeof byteOffset === "undefined") byteOffset = 0;
    if (typeof byteLength === "undefined") byteLength = buffer.length;
    this._buffer = byteOffset === 0 && byteLength === buffer.length
        ? buffer
        : buffer.slice(byteOffset, byteLength);
}
function BufferView(buffer, byteOffset, byteLength) {
    if (typeof byteOffset === "undefined") byteOffset = 0;
    if (typeof byteLength === "undefined") byteLength = buffer.length;
    this._buffer = byteOffset === 0 && byteLength === buffer.length
        ? buffer
        : buffer.slice(byteOffset, byteLength);
}
function BufferView ( buffer , byteOffset , byteLength ) { if ( typeof byteOffset === "undefined" ) byteOffset = 0 ; if ( typeof byteLength === "undefined" ) byteLength = buffer . length ; this . _buffer = byteOffset === 0 && byteLength === buffer . length ? buffer : buffer . slice ( byteOffset , byteLength ) ; }
Constructs a new BufferView.
@exports BufferView
@class An optimized DataView-compatible BufferView for node Buffers.
@param {!Buffer} buffer An existing Buffer to use as the storage for the new BufferView object.
@param {number=} byteOffset The offset, in bytes, to the first byte in the specified buffer for the new view to
reference. If not specified, the view of the buffer will start with the first byte.
@param {number=} byteLength The number of elements in the byte array. If unspecified, length of the view will match
the buffer's length.
@constructor
@extends DataView
Constructs a new BufferView .