msdos

package
v0.4.8 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2024 License: MPL-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package msdos provides functions for working with the FAT12/16 filesystems.

Index

Constants

View Source
const (
	// Magic12 is the FAT12 magic signature.
	Magic12 = "FAT12"
	// Magic16 is the FAT16 magic signature.
	Magic16 = "FAT16"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type SuperBlock

type SuperBlock struct {
	Label [11]uint8
	Magic [8]uint8
	// contains filtered or unexported fields
}

SuperBlock represents the vfat super block.

See https://en.wikipedia.org/wiki/Design_of_the_FAT_file_system#Extended_BIOS_Parameter_Block for the reference.

func (*SuperBlock) Encrypted

func (sb *SuperBlock) Encrypted() bool

Encrypted implements the SuperBlocker interface.

func (*SuperBlock) Is

func (sb *SuperBlock) Is() bool

Is implements the SuperBlocker interface.

func (*SuperBlock) Offset

func (sb *SuperBlock) Offset() int64

Offset implements the SuperBlocker interface.

func (*SuperBlock) Type

func (sb *SuperBlock) Type() string

Type implements the SuperBlocker interface.

Jump to

Keyboard shortcuts

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