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
fromBytes:
  Answers a single-subscription byte stream that will emit the given bytes in a single chunk

     Arguments:
        bytes - byte object <ByteArray>
     Answers:
        <EsByteStream>
Instance Methods
asBytes
  Answer the bytes in a <ByteArray> container

     Answers:
        <ByteArray>
asString
  Answer the bytes in a <String> container

     Answers:
        <String>
Last modified date: 04/21/2022