prod/service-worker-28ddbc7ef7a575da0539a0f05f4bfdae.js
function fromListPartial(n, list, hasStrings) {
  var ret;
  if (n < list.head.data.length) {
    // slice is the same for buffers and strings
    ret = list.head.data.slice(0, n);
    list.head.data = list.head.data.slice(n);
  } else if (n === list.head.data.length) {
    // first chunk is a perfect match
    ret = list.shift();
  } else {
    // result spans more than one buffer
    ret = hasStrings ? copyFromBufferString(n, list) : copyFromBuffer(n, list);
  }
  return ret;
}
function fromListPartial(n, list, hasStrings) {
  var ret;
  if (n < list.head.data.length) {
    // slice is the same for buffers and strings
    ret = list.head.data.slice(0, n);
    list.head.data = list.head.data.slice(n);
  } else if (n === list.head.data.length) {
    // first chunk is a perfect match
    ret = list.shift();
  } else {
    // result spans more than one buffer
    ret = hasStrings ? copyFromBufferString(n, list) : copyFromBuffer(n, list);
  }
  return ret;
}
function fromListPartial ( n , list , hasStrings ) { var ret ; if ( n < list . head . data . length ) { // slice is the same for buffers and strings ret = list . head . data . slice ( 0 , n ) ; list . head . data = list . head . data . slice ( n ) ; } else if ( n === list . head . data . length ) { // first chunk is a perfect match ret = list . shift ( ) ; } else { // result spans more than one buffer ret = hasStrings ? copyFromBufferString ( n , list ) : copyFromBuffer ( n , list ) ; } return ret ; }
Extracts only enough buffered data to satisfy the amount requested. This function is designed to be inlinable, so please take care when making changes to the function body.
Extracts only enough buffered data to satisfy the amount requested . This function is designed to be inlinable so please take care when making changes to the function body .