formats

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2022 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	XCIHeaderSize              = 0x200
	XCIHeaderMagicStringOffset = 0x100
	XCIRootPartionHeaderOffset = 0x130
)
View Source
const UNCOMPRESSABLE_HEADER_SIZE int64 = 0x4000

Variables

This section is empty.

Functions

func ValidateNSPHash

func ValidateNSPHash(keystore *keystore.Keystore, settings *settings.Settings, reader ReaderRequired) error

func ValidateXCIHash

func ValidateXCIHash(keystore *keystore.Keystore, settings *settings.Settings, reader ReaderRequired) error

Types

type FileInfo

type FileInfo struct {
	Name string

	TitleID       uint64
	Version       uint32
	EmbeddedTitle string
	Type          cnmt.MetaType
	Size          int64
}

FileInfo is the parsed metadata around a file This contains all the data used by the rest of the package

func ParseNSPToMetaData

func ParseNSPToMetaData(keystore *keystore.Keystore, settings *settings.Settings, reader io.ReaderAt) (FileInfo, error)

func ParseXCIToMetaData

func ParseXCIToMetaData(keystore *keystore.Keystore, settings *settings.Settings, reader io.ReaderAt) (FileInfo, error)

type FileType

type FileType uint8

type ReaderRequired

type ReaderRequired interface {
	io.ReadSeeker
	io.ReaderAt
}

Directories

Path Synopsis
Package xts implements the XTS cipher mode as specified in IEEE P1619/D16.
Package xts implements the XTS cipher mode as specified in IEEE P1619/D16.

Jump to

Keyboard shortcuts

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