amigaBlock-method | R Documentation |
Extract an amigaBlock
from an amigaDisk
object,
or replace it on the disk.
## S4 method for signature 'amigaDisk,numeric'
amigaBlock(x, block)
## S4 replacement method for signature 'amigaDisk,numeric,amigaBlock'
amigaBlock(x, block) <- value
x |
An |
block |
A |
value |
An |
Information is stored in 512 byte blocks on floppy disks. This method
extracts a specific block at a numeric
identifier (whole numbers
ranging from 0 up to 1759 (DD disk) or 3519 (HD disk)) from an
amigaDisk
object.
The amigaBlock
object at the specified location
is returned. In case of the replace method, an amigaDisk
object with a replaced amigaBlock
is returned.
Pepijn de Vries
Other block.operations:
get.blockID()
,
get.diskLocation()
## get the root block from the example adf:
amigaBlock(adf.example, 880)
## Create a completely blank disk without file system:
blank.disk <- new("amigaDisk")
## Replace the boot block on the blank disk with
## that from the example object:
amigaBlock(blank.disk, 0) <- amigaBlock(adf.example, 0)
## The blank disk now has a boot block,
## but still no file system...
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.