summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormartink-p <47943787+martink-p@users.noreply.github.com>2019-06-13 18:21:00 +0200
committermartink-p <47943787+martink-p@users.noreply.github.com>2019-06-17 12:13:29 +0200
commit9cff71f5b03eb6e9b56c1bcd3a1ccffb0653395e (patch)
treee94b3d39dc5c8d48420cece279dfc8329b689b6a
parent8b22ede5f34f4064c6b299a9fbee50e118897a5b (diff)
downloadnextcloud-server-9cff71f5b03eb6e9b56c1bcd3a1ccffb0653395e.tar.gz
nextcloud-server-9cff71f5b03eb6e9b56c1bcd3a1ccffb0653395e.zip
Update Encryption.php
Signed-off-by: martink-p <47943787+martink-p@users.noreply.github.com>
-rw-r--r--lib/private/Files/Stream/Encryption.php16
1 files changed, 9 insertions, 7 deletions
diff --git a/lib/private/Files/Stream/Encryption.php b/lib/private/Files/Stream/Encryption.php
index efa6f7c2912..d6e40655394 100644
--- a/lib/private/Files/Stream/Encryption.php
+++ b/lib/private/Files/Stream/Encryption.php
@@ -317,13 +317,15 @@ class Encryption extends Wrapper {
}
/**
- * Name: stream_read_block
- * Description: This function is a wrapper for function stream_read.
- * It calls stream read until the requested $blockSize was received or no remaining data is present.
- * This is required as stream_read only returns smaller chunks of data when the stream fetches from a remote storage over the internet
- * and it does not care about the given $blockSize.
- * Inputs: int $blockSize. Length of requested data block in bytes
- * Returns: string. data fetched from stream.
+ * stream_read_block
+ *
+ * This function is a wrapper for function stream_read.
+ * It calls stream read until the requested $blockSize was received or no remaining data is present.
+ * This is required as stream_read only returns smaller chunks of data when the stream fetches from a
+ * remote storage over the internet and it does not care about the given $blockSize.
+ *
+ * @param int $blockSize Length of requested data block in bytes
+ * @return string Data fetched from stream.
*/
private function stream_read_block(int $blockSize): string {
$remaining = $blockSize;