Write

open fun Write(Data: Int)

Write one byte to the simulated cassette interface. Don't be fooled by the parameter Type - it's just because the Java byte Type has a silly -128 .. 127 range.

Parameters

Data

a byte

Throws

any kind of IO error


open fun Write(Data: Array<Int>)
open fun Write(Data: Array<Short>)

writes the bytes in the array to the interface. Note that the Java designers in there great wisdom defined a byte as -128..128 - while in 99% of all cases one need 0..255. Hence we use a int array to pass bytes. As an Ada advocate this mistreatment of data types gives me pimples.

Parameters

Data

byte array

Throws

any kind of IO error