(string)
| 21 | # to byte arrays |
| 22 | sab = System.Array[System.Byte] |
| 23 | def as_byte_array(string): |
| 24 | return sab([ord(x) for x in string]) # XXX will require adaption when run with a 3.x compatible IronPython |
| 25 | |
| 26 | class IronSerial(SerialBase): |
| 27 | """Serial port implemenation for .NET/Mono.""" |