code: function(capacity, littleEndian, noAssert) {
          if (typeof capacity === 'undefined')
              capacity = ByteBuffer.DEFAULT_CAPACITY;
          if (typeof littleEndian === 'undefined')
              littleEndian = ByteBuffer.DEFAULT_ENDIAN;
          if (typeof noAssert === 'undefined')
              noAssert = ByteBuffer.DEFAULT_NOASSERT;
          if (!noAssert) {
              capacity = capacity | 0;
              if (capacity < 0)
                  throw RangeError("Illegal capacity");
              littleEndian = !!littleEndian;
              noAssert = !!noAssert;
          }
  
          /**
           * Backing node Buffer.
           * @type {!Buffer}
           * @expose
           */
          this.buffer = capacity === 0 ? EMPTY_BUFFER : new Buffer(capacity);
  
          /**
           * Absolute read/write offset.
           * @type {number}
           * @expose
           * @see ByteBuffer#flip
           * @see ByteBuffer#clear
           */
          this.offset = 0;
  
          /**
           * Marked offset.
           * @type {number}
           * @expose
           * @see ByteBuffer#mark
           * @see ByteBuffer#reset
           */
          this.markedOffset = -1;
  
          /**
           * Absolute limit of the contained data. Set to the backing buffer's capacity upon allocation.
           * @type {number}
           * @expose
           * @see ByteBuffer#flip
           * @see ByteBuffer#clear
           */
          this.limit = capacity;
  
          /**
           * Whether to use little endian byte order, defaults to `false` for big endian.
           * @type {boolean}
           * @expose
           */
          this.littleEndian = littleEndian;
  
          /**
           * Whether to skip assertions of offsets and values, defaults to `false`.
           * @type {boolean}
           * @expose
           */
          this.noAssert = noAssert;
      }
docs: Constructs a new ByteBuffer.
  @class The swiss army knife for binary data in JavaScript.
  @exports ByteBuffer
  @constructor
  @param {number=} capacity Initial capacity. Defaults to {@link ByteBuffer.DEFAULT_CAPACITY}.
  @param {boolean=} littleEndian Whether to use little or big endian byte order. Defaults to
  {@link ByteBuffer.DEFAULT_ENDIAN}.
  @param {boolean=} noAssert Whether to skip assertions of offsets and values. Defaults to
  {@link ByteBuffer.DEFAULT_NOASSERT}.
  @expose