StringToIntArray
ptolemy.actor.lib.conversions.StringToIntArray

Convert a string to an integer-array. The output is an array of integers constructed by placing one byte (i.e. one character) of the string into the least significant byte of each integer. Typically, this byte is the ASCII code of the character. NOTE: For the time being, this actor assumes an 8-bit character has been set as the Java default on the platform in use. This actor is designed to facilitate use of the SerialComm serial communication actor which uses the same kind of integer array. Datagram actors can take this format as well.



Author(s): Winthrop Williams
Version:$Id: StringToIntArray.java,v 1.21 2005/10/28 20:15:48 cxh Exp $
Pt.Proposed Rating:Red (winthrop)
Pt.Accepted Rating:Red (winthrop)


input
The port for the input, which has type string.

output
The output port, which has type {int}.