Skip to content

Reel To Reel

MasonGulu edited this page Jul 15, 2022 · 5 revisions

Reel to reels are larger and slightly more advanced than cassettes. They're a linear tape with a data "stream", but allow for absolute and relative seeking. To add length to a tape right click with it in your hand and some extra tape in your inventory.

Peripheral Api

hasTape(): boolean

read(characters: int): string

write(string): boolean

seek(offset: int): boolean

seekAbs(location: int): boolean

getPos(): int

setLabel(label: string): boolean

clearLabel(): boolean

write, seek, and seekAbs return a boolean indicating success, if it's true the operation completed as expected, otherwise it was interrupted by the end of the tape being reached. When the end of tape is reached during a read call the string will be cut off (so if you're at the end of the tape and attempt to read any amount of data, you'll receive an empty string).

Clone this wiki locally