lib/services/file/internal/filerangestream.js
function FileRangeStream(fileServiceClient, share, directory, file, options) {
  FileRangeStream['super_'].call(this, fileServiceClient, null, null, options);
    
  this._lengthHeader = Constants.HeaderConstants.FILE_CONTENT_LENGTH;
  if (options.minRangeSize) {
    this._minRangeSize = options.minRangeSize;
  } else {
    this._minRangeSize = Constants.FileConstants.MIN_WRITE_FILE_SIZE_IN_BYTES;
  }
  if (options.maxRangeSize) {
    this._maxRangeSize = options.maxRangeSize;
  } else {
    this._maxRangeSize = Constants.FileConstants.DEFAULT_WRITE_SIZE_IN_BYTES;
  }
  this._listFunc = fileServiceClient.listRanges;
  this._resourcePath.push(share);
  this._resourcePath.push(directory);
  this._resourcePath.push(file);
}
function FileRangeStream(fileServiceClient, share, directory, file, options) {
  FileRangeStream['super_'].call(this, fileServiceClient, null, null, options);
    
  this._lengthHeader = Constants.HeaderConstants.FILE_CONTENT_LENGTH;
  if (options.minRangeSize) {
    this._minRangeSize = options.minRangeSize;
  } else {
    this._minRangeSize = Constants.FileConstants.MIN_WRITE_FILE_SIZE_IN_BYTES;
  }
  if (options.maxRangeSize) {
    this._maxRangeSize = options.maxRangeSize;
  } else {
    this._maxRangeSize = Constants.FileConstants.DEFAULT_WRITE_SIZE_IN_BYTES;
  }
  this._listFunc = fileServiceClient.listRanges;
  this._resourcePath.push(share);
  this._resourcePath.push(directory);
  this._resourcePath.push(file);
}
function FileRangeStream ( fileServiceClient , share , directory , file , options ) { FileRangeStream [ 'super_' ] . call ( this , fileServiceClient , null , null , options ) ; this . _lengthHeader = Constants . HeaderConstants . FILE_CONTENT_LENGTH ; if ( options . minRangeSize ) { this . _minRangeSize = options . minRangeSize ; } else { this . _minRangeSize = Constants . FileConstants . MIN_WRITE_FILE_SIZE_IN_BYTES ; } if ( options . maxRangeSize ) { this . _maxRangeSize = options . maxRangeSize ; } else { this . _maxRangeSize = Constants . FileConstants . DEFAULT_WRITE_SIZE_IN_BYTES ; } this . _listFunc = fileServiceClient . listRanges ; this . _resourcePath . push ( share ) ; this . _resourcePath . push ( directory ) ; this . _resourcePath . push ( file ) ; }
File range stream
File range stream