prod/service-worker-28ddbc7ef7a575da0539a0f05f4bfdae.js
function fromList(n, state) {
  // nothing buffered
  if (state.length === 0) return null;

  var ret;
  if (state.objectMode) ret = state.buffer.shift();else if (!n || n >= state.length) {
    // read it all, truncate the list
    if (state.decoder) ret = state.buffer.join('');else if (state.buffer.length === 1) ret = state.buffer.head.data;else ret = state.buffer.concat(state.length);
    state.buffer.clear();
  } else {
    // read part of list
    ret = fromListPartial(n, state.buffer, state.decoder);
  }

  return ret;
}
function fromList(n, state) {
  // nothing buffered
  if (state.length === 0) return null;

  var ret;
  if (state.objectMode) ret = state.buffer.shift();else if (!n || n >= state.length) {
    // read it all, truncate the list
    if (state.decoder) ret = state.buffer.join('');else if (state.buffer.length === 1) ret = state.buffer.head.data;else ret = state.buffer.concat(state.length);
    state.buffer.clear();
  } else {
    // read part of list
    ret = fromListPartial(n, state.buffer, state.decoder);
  }

  return ret;
}
function fromList ( n , state ) { // nothing buffered if ( state . length === 0 ) return null ; var ret ; if ( state . objectMode ) ret = state . buffer . shift ( ) ; else if ( ! n || n >= state . length ) { // read it all, truncate the list if ( state . decoder ) ret = state . buffer . join ( '' ) ; else if ( state . buffer . length === 1 ) ret = state . buffer . head . data ; else ret = state . buffer . concat ( state . length ) ; state . buffer . clear ( ) ; } else { // read part of list ret = fromListPartial ( n , state . buffer , state . decoder ) ; } return ret ; }
Pluck off n bytes from an array of buffers. Length is the combined lengths of all the buffers in the list. This function is designed to be inlinable, so please take care when making changes to the function body.
Pluck off n bytes from an array of buffers . Length is the combined lengths of all the buffers in the list . This function is designed to be inlinable so please take care when making changes to the function body .