Differential D19548 Diff 46739 src/applications/files/engine/PhabricatorChunkedFileStorageEngine.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/files/engine/PhabricatorChunkedFileStorageEngine.php
Show First 20 Lines • Show All 168 Lines • ▼ Show 20 Lines | private function getWritableEngine() { | ||||
return false; | return false; | ||||
} | } | ||||
public function getChunkSize() { | public function getChunkSize() { | ||||
return (4 * 1024 * 1024); | return (4 * 1024 * 1024); | ||||
} | } | ||||
public function newRawFileDataIteratorFuture( | |||||
PhabricatorFile $file, | |||||
$begin, | |||||
$end, | |||||
PhabricatorFileStorageFormat $format) { | |||||
$iterator = $this->getRawFileDataIterator( | |||||
$file, | |||||
$begin, | |||||
$end, | |||||
$format); | |||||
return new ImmediateFuture($iterator); | |||||
} | |||||
public function getRawFileDataIterator( | public function getRawFileDataIterator( | ||||
PhabricatorFile $file, | PhabricatorFile $file, | ||||
$begin, | $begin, | ||||
$end, | $end, | ||||
PhabricatorFileStorageFormat $format) { | PhabricatorFileStorageFormat $format) { | ||||
// NOTE: It is currently impossible for files stored with the chunk | // NOTE: It is currently impossible for files stored with the chunk | ||||
// engine to have their own formatting (instead, the individual chunks | // engine to have their own formatting (instead, the individual chunks | ||||
Show All 13 Lines |