← All docs

stream_set_chunk_size()

Sets the read chunk size on a stream.

stream_set_chunk_size()

function stream_set_chunk_size(resource $stream, int $size): int

Sets the read chunk size on a stream.

Parameters:

  • $stream (resource)
  • $size (int)

Returns: int

Availability

No examples yet — check examples/ and showcases/ for usage patterns.

Internals

For how stream_set_chunk_size is implemented in the compiler, see the internals page.