package
Version:
v0.1.1-0...-42241d0
Opens a new window with list of versions in this module.
Published: Jan 22, 2021
License: MPL-2.0
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package lba provides a library for working with Logical Block Addresses.
Buffer is an in-memory buffer for writing to byte slices in units of LBA.
NewBuffer intializes and returns a `Buffer`.
Bytes returns the buffer bytes.
Read reads from a `Buffer`.
Write writes to a `Buffer`.
type LBA struct {
PhysicalBlockSize int64
LogicalBlockSize int64
TotalSectors int64
}
LBA represents logical block addressing.
NewLBA initializes and returns an `LBA`.
ReadAt reads from a file in units of LBA.
WriteAt writes to a file in units of LBA.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.