Flow PHP

Block

Methods

__construct()  : mixed
append()  : void
fromResource()  : int
id()  : string
path()  : Path
size()  : int
Current block size in bytes.
spaceLeft()  : int

Methods

__construct()

public __construct(string $id, int $totalSize, Path $path) : mixed
Parameters
$id : string
$totalSize : int
$path : Path

append()

public append(string $data) : void
Parameters
$data : string
Tags
throws
RuntimeException

when we try to append more data than block can handle

fromResource()

public fromResource(resource $resource[, int $offset = 0 ]) : int
Parameters
$resource : resource
$offset : int = 0
Return values
int

id()

public id() : string
Return values
string

size()

Current block size in bytes.

public size() : int
Return values
int

spaceLeft()

public spaceLeft() : int
Return values
int

        
On this page

Search results