code: function chunkLength (chunk, encoding) {
    if (!chunk) {
      return 0
    }
  
    return !Buffer.isBuffer(chunk)
      ? Buffer.byteLength(chunk, encoding)
      : chunk.length
  }
docs: Get the length of a given chunk