roStreamByteArrayEvent
1 min
stream receive objects that implement the ifstreamreceive interface (like rotcpstream docid\ klp1luepyzlmaq0hbxbpi or roserialport docid 25ega25abzftxgitvvmms ) include a setbytearrayeventport(message port as object) method this method ensures that rostreambytearrayevent events are posted to the message port when bytes are received for some object types when bytes are expected to be received in chunks (for example, rotcpstream ), this can be much more efficient since data no longer needs to be delivered to brightscript a byte at a time, but since serial ports are comparatively slow it's possible that each event will still contain only a single character ifuserdata getbytearray() as object returns the received bytes that have been set via setbytearrayeventport() it will return invalid if no data has been set