stream vs buffer code example
Example: buffer vs stream
The difference between a buffer and a stream:
> Stream is a sequence that transfers information from or to a
specified source.
> Buffer is a sequence of bytes that is stored in memory.
The difference between a buffer and a stream:
> Stream is a sequence that transfers information from or to a
specified source.
> Buffer is a sequence of bytes that is stored in memory.