Documentation ¶
Overview ¶
Package lba provides a library for working with Logical Block Addresses.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LogicalBlockAddresser ¶
LogicalBlockAddresser represents Logical Block Addressing.
func New ¶
func New(f *os.File) (lba *LogicalBlockAddresser, err error)
New initializes and returns a LogicalBlockAddresser.
func (*LogicalBlockAddresser) From ¶
func (lba *LogicalBlockAddresser) From(src []byte, rng Range) ([]byte, error)
From returns a slice from a source slice in the the specified range inclusively.
func (*LogicalBlockAddresser) Make ¶
func (lba *LogicalBlockAddresser) Make(size uint64) []byte
Make returns a slice from a source slice in the the specified range inclusively.
Click to show internal directories.
Click to hide internal directories.