Menu

## ClosureStream
in package

ClosureStream.php : 5

### 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

ClosureStream.php : 11

The stream protocol.

`public mixed STREAM_PROTO = 'laravel-serializable-closure'`

### Properties

#### $content

ClosureStream.php : 25

The stream content.

`protected string $content`

#### $isRegistered

ClosureStream.php : 18

Checks if this stream is registered.

`protected static bool $isRegistered = false`

#### $length

ClosureStream.php : 32

The stream content.

`protected int $length`

#### $pointer

ClosureStream.php : 39

The stream pointer.

`protected int $pointer = 0`

### Methods

#### register()

ClosureStream.php : 173

Registers the stream.

`public static register() : void`

#### stream_eof()

ClosureStream.php : 78

Tests for end-of-file on a file pointer.

`public stream_eof() : bool`

##### Return values

bool

#### stream_open()

ClosureStream.php : 50

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

bool

#### stream_read()

ClosureStream.php : 64

Read from stream.

`public stream_read(int $count) : string`

##### Parameters

$count : int

##### Return values

string

#### stream_seek()

ClosureStream.php : 133

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

bool

#### stream_set_option()

ClosureStream.php : 91

Change stream options.

`public stream_set_option(int $option, int $arg1, int $arg2) : bool`

##### Parameters

$option : int
$arg1 : int
$arg2 : int

##### Return values

bool

#### stream_stat()

ClosureStream.php : 101

Retrieve information about a file resource.

`public stream_stat() : array<string|int, mixed>|bool`

##### Return values

array<string|int, mixed>|bool

#### stream_tell()

ClosureStream.php : 163

Retrieve the current position of a stream.

`public stream_tell() : int`

##### Return values

int

#### url_stat()

ClosureStream.php : 117

Retrieve information about a file.

`public url_stat(string $path, int $flags) : array<string|int, mixed>|bool`

##### Parameters

$path : string
$flags : int

##### Return values

array<string|int, mixed>|bool

## Search results