Welcome to mirror list, hosted at ThFree Co, Russian Federation.

File.php « src « streams « icewind « 3rdparty « files_external « apps - github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 252b7b8971fb1db0b9b92487aa2ed4587680ce30 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<?php
/**
 * Copyright (c) 2014 Robin Appelman <icewind@owncloud.com>
 * This file is licensed under the Licensed under the MIT license:
 * http://opensource.org/licenses/MIT
 */

namespace Icewind\Streams;

/**
 * Interface for stream wrappers that implements a file
 */
interface File {
	/**
	 * @param string $path
	 * @param string $mode
	 * @param int $options
	 * @param string &$opened_path
	 * @return bool
	 */
	public function stream_open($path, $mode, $options, &$opened_path);

	/**
	 * @param int $offset
	 * @param int $whence
	 * @return bool
	 */
	public function stream_seek($offset, $whence = SEEK_SET);

	/**
	 * @return int
	 */
	public function stream_tell();

	/**
	 * @param int $count
	 * @return string
	 */
	public function stream_read($count);

	/**
	 * @param string $data
	 * @return int
	 */
	public function stream_write($data);

	/**
	 * @param int $option
	 * @param int $arg1
	 * @param int $arg2
	 * @return bool
	 */
	public function stream_set_option($option, $arg1, $arg2);

	/**
	 * @param int $size
	 * @return bool
	 */
	public function stream_truncate($size);

	/**
	 * @return array
	 */
	public function stream_stat();

	/**
	 * @param int $operation
	 * @return bool
	 */
	public function stream_lock($operation);

	/**
	 * @return bool
	 */
	public function stream_flush();

	/**
	 * @return bool
	 */
	public function stream_eof();

	/**
	 * @return bool
	 */
	public function stream_close();
}