TPFS-0.1: Tagged plain file system in which a file can only have multiple tags and nothing more.

System.TPFS.SolidArray

Description

Describes a class for accessing arrays on-disk, like bitmaps and such.

Synopsis

Documentation

class SolidArray t whereSource

Solid arrays are on-disk arrays of values of type t. They can be read from and written to with random access.

Methods

arrReadSource

Arguments

:: (Device m h, Integral i) 
=> h

The device handle.

-> Address

The base address of the array.

-> (i, i)

The range to read from the array.

-> m [t]

The resulting list of values.

Read an inclusive range from the array.

arrWriteSource

Arguments

:: (Device m h, Integral i) 
=> h

The device handle.

-> Address

The base address of the array.

-> i

The offset to begin writing at.

-> [t]

The list of values to write at the offset.

-> m () 

Write a list to the array at an offset.