Read

open fun Read(): Int

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

Return

byte array

Throws

any kind of IO error


open fun Read(size: Int): Array<Int>

Read a few byte from the simulated tape interface. Don't be fooled by the return Type - it's just because the Java byte Type has a silly -128 .. 127 range.

Return

byte array

Parameters

size

amount of bytes to be read

Throws

any kind of IO error