diff options
Diffstat (limited to 'apps/files_encryption/lib/cryptstream.php')
-rw-r--r-- | apps/files_encryption/lib/cryptstream.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/apps/files_encryption/lib/cryptstream.php b/apps/files_encryption/lib/cryptstream.php index 46471911d94..75ad62659d7 100644 --- a/apps/files_encryption/lib/cryptstream.php +++ b/apps/files_encryption/lib/cryptstream.php @@ -64,16 +64,16 @@ class OC_CryptStream{ } return is_resource($this->source); } - + public function stream_seek($offset, $whence=SEEK_SET){ $this->flush(); fseek($this->source,$offset,$whence); } - + public function stream_tell(){ return ftell($this->source); } - + public function stream_read($count){ //$count will always be 8192 https://bugs.php.net/bug.php?id=21641 //This makes this function a lot simpler but will breake everything the moment it's fixed @@ -95,7 +95,7 @@ class OC_CryptStream{ } return $result; } - + public function stream_write($data){ $length=strlen($data); $currentPos=ftell($this->source); @@ -143,11 +143,11 @@ class OC_CryptStream{ public function stream_stat(){ return fstat($this->source); } - + public function stream_lock($mode){ flock($this->source,$mode); } - + public function stream_flush(){ return fflush($this->source); } |