← All docs

stream_set_read_buffer()

Sets the read file buffering on a stream.

stream_set_read_buffer()

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

Sets the read file buffering on a stream.

Parameters:

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

Returns: int

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

Internals

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