EsByteStream
Description
A streaming view over chunks of bytes <ByteArray> representing a single piece of data.
Examples
| bytes future string |
bytes := 'abcdefg' asByteArray.
bytes := EsByteStream fromBytes: bytes.
future := bytes asString.
string := future waitFor.   "abcdefg"
bytes asString  "Raises Exception: Stream has already been listened to"
Class Methods
<details>     fromBytes:
<pre><code>  Answers a single-subscription byte stream that will emit the given bytes in a single chunk
 Arguments:
    bytes - byte object <ByteArray>
 Answers:
    <EsByteStream>
</code></pre> </details>
Instance Methods
<details>     asBytes
<pre><code>  Answer the bytes in a <ByteArray> container
 Answers:
    <ByteArray>
</code></pre> </details>
<details>     asString
<pre><code>  Answer the bytes in a <String> container
 Answers:
    <String>
</code></pre> </details>
Last modified date: 04/21/2022