object
method virtual name : string
method virtual size : int64
- method close : unit -> unit
- method virtual read : int64 -> int -> string
+ method read : int64 -> int -> string
method read_bitstring : int64 -> int -> Bitmatch.bitstring
+ method virtual blocksize : int
+ method virtual mapblock : int64 -> (device * int64) list
end
-class block_device : string ->
+class block_device : string -> int ->
object
method name : string
method size : int64
- method close : unit -> unit
method read : int64 -> int -> string
method read_bitstring : int64 -> int -> Bitmatch.bitstring
+ method blocksize : int
+ method mapblock : int64 -> (device * int64) list
+ method close : unit -> unit
end
-class offset_device : string -> int64 -> int64 -> device ->
+class offset_device : string -> int64 -> int64 -> int -> device ->
object
method name : string
method size : int64
- method close : unit -> unit
method read : int64 -> int -> string
method read_bitstring : int64 -> int -> Bitmatch.bitstring
+ method blocksize : int
+ method mapblock : int64 -> (device * int64) list
end
val null_device : device
and disk = {
d_name : string;
- d_dev : device;
+ d_dev : block_device;
d_content : disk_content;
}