Skip to content

EndlessCycleStream

Properties

offset

private int $offset

toRepeat

private string $toRepeat

Methods

__construct

public __construct(string $toRepeat = '0'): mixed

Parameters:

Parameter Type Description
$toRepeat string

__toString

public __toString(): string

close

public close(): void

detach

public detach(): null

getSize

public getSize(): ?int

tell

public tell(): int

eof

public eof(): bool

isSeekable

public isSeekable(): bool

seek

public seek(int $offset, int $whence = SEEK_SET): void

Parameters:

Parameter Type Description
$offset int
$whence int

rewind

public rewind(): void

isWritable

public isWritable(): bool

write

public write(string $string): int

Parameters:

Parameter Type Description
$string string

isReadable

public isReadable(): bool

read

public read(int $length): string

Parameters:

Parameter Type Description
$length int

getContents

public getContents(): string

getMetadata

public getMetadata(?string $key = null): array|null

Parameters:

Parameter Type Description
$key ?string


Automatically generated on 2025-03-18