utils

package
v0.0.0-...-1b22259 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 5, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BlockSize  = 4096
	SectorSize = 512
)

Variables

This section is empty.

Functions

func DefaultSectorReader

func DefaultSectorReader() *sectorReader

func NewSectorReader

func NewSectorReader(sectorSize int) (*sectorReader, error)

func ReadBlock

func ReadBlock(r io.Reader) ([]byte, error)

Types

type SectorReader

type SectorReader interface {
	ReadSector(r io.Reader) ([]byte, error)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL