ClosureStream
in package
Attributes
- #[AllowDynamicProperties]
Table of Contents
Constants
- STREAM_PROTO = 'laravel-serializable-closure'
- The stream protocol.
Properties
- $content : string
- The stream content.
- $isRegistered : bool
- Checks if this stream is registered.
- $length : int
- The stream content.
- $pointer : int
- The stream pointer.
Methods
- register() : void
- Registers the stream.
- stream_eof() : bool
- Tests for end-of-file on a file pointer.
- stream_open() : bool
- Opens file or URL.
- stream_read() : string
- Read from stream.
- stream_seek() : bool
- Seeks to specific location in a stream.
- stream_set_option() : bool
- Change stream options.
- stream_stat() : array<string|int, mixed>|bool
- Retrieve information about a file resource.
- stream_tell() : int
- Retrieve the current position of a stream.
- url_stat() : array<string|int, mixed>|bool
- Retrieve information about a file.
Constants
STREAM_PROTO
The stream protocol.
public
mixed
STREAM_PROTO
= 'laravel-serializable-closure'
Properties
$content
The stream content.
protected
string
$content
$isRegistered
Checks if this stream is registered.
protected
static bool
$isRegistered
= false
$length
The stream content.
protected
int
$length
$pointer
The stream pointer.
protected
int
$pointer
= 0
Methods
register()
Registers the stream.
public
static register() : void
stream_eof()
Tests for end-of-file on a file pointer.
public
stream_eof() : bool
Return values
boolstream_open()
Opens file or URL.
public
stream_open(string $path, string $mode, string $options, string|null &$opened_path) : bool
Parameters
- $path : string
- $mode : string
- $options : string
- $opened_path : string|null
Return values
boolstream_read()
Read from stream.
public
stream_read(int $count) : string
Parameters
- $count : int
Return values
stringstream_seek()
Seeks to specific location in a stream.
public
stream_seek(int $offset[, int $whence = SEEK_SET ]) : bool
Parameters
- $offset : int
- $whence : int = SEEK_SET
Return values
boolstream_set_option()
Change stream options.
public
stream_set_option(int $option, int $arg1, int $arg2) : bool
Parameters
- $option : int
- $arg1 : int
- $arg2 : int
Return values
boolstream_stat()
Retrieve information about a file resource.
public
stream_stat() : array<string|int, mixed>|bool
Return values
array<string|int, mixed>|boolstream_tell()
Retrieve the current position of a stream.
public
stream_tell() : int
Return values
inturl_stat()
Retrieve information about a file.
public
url_stat(string $path, int $flags) : array<string|int, mixed>|bool
Parameters
- $path : string
- $flags : int