rom

package
v0.5.5-beta Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2014 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package rom has helper functions for extracting rom data. Currently it is only used to hash them.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode

func Decode(p string) (io.ReadCloser, error)

Decode takes a path and returns a reader for the inner rom data.

func KnownExt

func KnownExt(e string) bool

KnownExt returns True if the extention is registered.

func Noop

func Noop(f io.ReadCloser, s int64) (io.ReadCloser, error)

Noop does nothong but return the passed in file.

func RegisterFormat

func RegisterFormat(ext string, decode Decoder)

RegisterFormat registers a format with the rom package.

func SHA1

func SHA1(p string) (string, error)

SHA1 takes a pathand returns the SHA1 hash of the inner rom.

Types

type Decoder

type Decoder func(io.ReadCloser, int64) (io.ReadCloser, error)

type ZipReader

type ZipReader struct {
	// contains filtered or unexported fields
}

func (ZipReader) Close

func (r ZipReader) Close() error

func (ZipReader) Read

func (r ZipReader) Read(p []byte) (int, error)

Directories

Path Synopsis
Package nes decodes .nes files
Package nes decodes .nes files
Package snes decodes .sms and .sfc files.
Package snes decodes .sms and .sfc files.

Jump to

Keyboard shortcuts

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