David Thomas
David Thomas

Reputation: 4396

How to set the default chunk size for a custom PHP stream wrapper

When using a stream wrapper for PHP, the chunk size can be set on the client side with stream_set_chunk_size

However, is there anyway to specify the chunk size from a custom stream wrapper implementation itself?

For example, an implementation of stream_write receives the set of bytes, but the byte length is default 8192 bytes. I'm wondering if it's possible to change that default byte length.

Upvotes: 1

Views: 819

Answers (0)

Related Questions