append(dataBuffer, start, end) {

        const _ = this;

        if (!Buffer.isBuffer(dataBuffer))
            throw new Error(`Buffer expected. Got ${(typeof dataBuffer)} instead.`);

        start = start || 0;
        end = end || dataBuffer.length;

        const chunkLen = end - start;

        if (_._maxLength && _._dataLen + chunkLen > _._maxLength)
            return false;

        _._buffer = BosDeserializeBuffer._ensureBufferSize(
            _._buffer, Math.max(_._initialSize || 0, _._dataLen + dataBuffer.length), _._maxLength, _._sizeBuffer);

        dataBuffer.copy(_._buffer, _._dataLen, start, end);
        _._dataLen += chunkLen;

        _._chunkTimesMsArr.push(Date.now(), _._dataLen/* buffer end*/);

        return true;
    }
/**
     * Append data from a Buffer.
     *
     * @param dataBuffer {Buffer}  The Buffer containing data to append.
     * @param [start=0]  {number}  The start index of the dataBuffer to append from.
     * @param [end]      {number}  The end index of the dataBuffer to stop appending from. (exclusive)
     *
     * @returns {boolean}  True if the data was appended. False if rejected because appending the data would cause the
     * buffer to be larger than the maxLength.
     */
Append data from a Buffer.
@param dataBuffer {Buffer}  The Buffer containing data to append.
@param [start=0]  {number}  The start index of the dataBuffer to append from.
@param [end]      {number}  The end index of the dataBuffer to stop appending from. (exclusive)

@returns {boolean}  True if the data was appended. False if rejected because appending the data would cause the
buffer to be larger than the maxLength.
Append data from a Buffer . @param dataBuffer { Buffer } The Buffer containing data to append . @param [ start = 0 ] { number } The start index of the dataBuffer to append from . @param [ end ] { number } The end index of the dataBuffer to stop appending from . ( exclusive ) @returns { boolean } True if the data was appended . False if rejected because appending the data would cause the buffer to be larger than the maxLength .
append(dataBuffer, start, end) {
        const _ = this;
        if (!Buffer.isBuffer(dataBuffer))
            throw new Error(`Buffer expected. Got ${(typeof dataBuffer)} instead.`);
        start = start || 0;
        end = end || dataBuffer.length;
        const chunkLen = end - start;
        if (_._maxLength && _._dataLen + chunkLen > _._maxLength)
            return false;
        _._buffer = BosDeserializeBuffer._ensureBufferSize(
            _._buffer, Math.max(_._initialSize || 0, _._dataLen + dataBuffer.length), _._maxLength, _._sizeBuffer);
        dataBuffer.copy(_._buffer, _._dataLen, start, end);
        _._dataLen += chunkLen;
        _._chunkTimesMsArr.push(Date.now(), _._dataLen);
        return true;
    }
append ( dataBuffer , start , end ) { const _ = this ; if ( ! Buffer . isBuffer ( dataBuffer ) ) throw new Error ( ` ${ ( typeof dataBuffer ) } ` ) ; start = start || 0 ; end = end || dataBuffer . length ; const chunkLen = end - start ; if ( _ . _maxLength && _ . _dataLen + chunkLen > _ . _maxLength ) return false ; _ . _buffer = BosDeserializeBuffer . _ensureBufferSize ( _ . _buffer , Math . max ( _ . _initialSize || 0 , _ . _dataLen + dataBuffer . length ) , _ . _maxLength , _ . _sizeBuffer ) ; dataBuffer . copy ( _ . _buffer , _ . _dataLen , start , end ) ; _ . _dataLen += chunkLen ; _ . _chunkTimesMsArr . push ( Date . now ( ) , _ . _dataLen ) ; return true ; }
Append data from a Buffer.
Append data from a Buffer .
/* buffer end*/