Documentation ¶
Index ¶
- type RAMDisk
- func (rdsk *RAMDisk) Close() error
- func (rdsk *RAMDisk) Flush() error
- func (rdsk *RAMDisk) ReadAt(buf []byte, pos int64) (count int, err error)
- func (rdsk *RAMDisk) Size() int64
- func (rdsk *RAMDisk) Trim(pos int64, count int) error
- func (rdsk *RAMDisk) WriteAt(buf []byte, pos int64) (count int, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RAMDisk ¶
type RAMDisk struct { usbdlib.DefaultBlockSize // contains filtered or unexported fields }
RAMDisk is a simple memory (heap) backed user-space block device
func NewRAMDisk ¶
NewRAMDisk constructs a memory backed user-space device of the provided size
Click to show internal directories.
Click to hide internal directories.