rawToAmigaBasic: Coerce raw data into an AmigaBasic class object

View source: R/basic.r

rawToAmigaBasicR Documentation

Coerce raw data into an AmigaBasic class object

Description

AmigaBasic() objects are comprehensive representations of binary-encode Amiga Basic scripts. Use this function to convert raw content from encoded Amiga Basic scripts to an AmigaBasic() object.

Usage

rawToAmigaBasic(x, ...)

Arguments

x

A vector of raw data that is to be converted into an AmigaBasic() class object.

...

Currently ignored.

Details

This function will convert raw data as stored in Amiga Basic files into its corresponding S3 AmigaBasic()-class object.

Value

An AmigaBasic() class object based on x.

Author(s)

Pepijn de Vries

See Also

Other AmigaBasic.operations: AmigaBasic.reserved(), AmigaBasicBMAP, AmigaBasic, [.AmigaBasic(), as.AmigaBasicBMAP(), as.AmigaBasic(), as.character(), check.names.AmigaBasic(), names.AmigaBasic(), rawToAmigaBasicBMAP(), read.AmigaBasicBMAP(), read.AmigaBasic(), write.AmigaBasic()

Other raw.operations: as.AmigaBasic(), as.raw.AmigaBasic(), colourToAmigaRaw(), packBitmap(), rawToAmigaBasicBMAP(), rawToAmigaBasicShape(), rawToAmigaBitmapFontSet(), rawToAmigaBitmapFont(), rawToAmigaIcon(), rawToHWSprite(), rawToIFFChunk(), rawToSysConfig(), simpleAmigaIcon()

Examples

## Not run: 
## First create an AmigaBAsic object:
bas <- as.AmigaBasic("PRINT \"Hello world!\"")

## Make it raw:
bas.raw <- as.raw(bas)

## Now convert it back to an AmigaBasic object:
bas <- rawToAmigaBasic(bas.raw)

## End(Not run)

AmigaFFH documentation built on June 22, 2024, 11:03 a.m.