Jump to content

ManagedMassStorage: Difference between revisions

From Advanced Computers Wiki
No edit summary
No edit summary
Line 1: Line 1:
The ManagedMassStorageUD component is what backs [[Hard Disk Drive|Hard Disk Drives]] and [[Floppy Disk|Floppy Disks]]. This virtual component offers the following properties:
The ManagedMassStorageUD component is what backs [[Hard Disk Drive|Hard Disk Drives]] and [[Floppy Disk|Floppy Disks]]. This virtual component offers the following properties:
{| class="wikitable"
{| class="wikitable"
|+ PunchcardReaderUD component properties
|+ ManagedMassStorageUD component properties
|-
|-
! Name !! Type !! Read/Write !! Description
! Name !! Type !! Read/Write !! Description
Line 9: Line 9:


{| class="wikitable"
{| class="wikitable"
|+ PunchcardReaderUD component methods
|+ ManagedMassStorageUD component methods
|-
|-
! Name !! Returns !! Description
! Name !! Returns !! Description

Revision as of 01:05, 2 August 2026

The ManagedMassStorageUD component is what backs Hard Disk Drives and Floppy Disks. This virtual component offers the following properties:

ManagedMassStorageUD component properties
Name Type Read/Write Description
totalCapacityBytes integer READ Total capacity of this drive (capacity is currently not limited, so this is not meaningful currently)
ManagedMassStorageUD component methods
Name Returns Description
:open(string:filePath[, string:mode=r]) filehandle
mode Attempted action
r Open an existing file in read-only mode.
r+ Open an existing file in read-write mode.
w Open a potentially existent file, erase the contents and open it in write-only mode.
w+ Same as w but also allows reading.
a Open or create a new file, do not erase the contents, allow only appending.