generic

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileBuffer

type FileBuffer struct {
	Buffer bytes.Buffer
	Offset int
}

func NewFileBuffer

func NewFileBuffer() *FileBuffer

func (*FileBuffer) Bytes

func (fb *FileBuffer) Bytes() []byte

func (*FileBuffer) Close

func (fb *FileBuffer) Close() error

func (*FileBuffer) Reader

func (fb *FileBuffer) Reader() io.Reader

func (*FileBuffer) Seek

func (fb *FileBuffer) Seek(offset int64, whence int) (int64, error)

func (*FileBuffer) Size

func (fb *FileBuffer) Size() int

func (*FileBuffer) Tell

func (fb *FileBuffer) Tell() int

func (*FileBuffer) Write

func (fb *FileBuffer) Write(p []byte) (n int, err error)

type ROM

type ROM struct {
	Filename string
	Data     []byte
	Size     int
	Offset   int
}

func NewROM

func NewROM(filename string) (rom *ROM, err error)

func (*ROM) Init

func (rom *ROM) Init() error

func (*ROM) Read16

func (rom *ROM) Read16() (value uint16, err error)

func (*ROM) Read32

func (rom *ROM) Read32() (value uint32, err error)

func (*ROM) Read8

func (rom *ROM) Read8() (value uint8, err error)

func (*ROM) ReadString

func (rom *ROM) ReadString() (value string, err error)

func (*ROM) Seek

func (rom *ROM) Seek(offset int)

func (*ROM) Tell

func (rom *ROM) Tell() (offset int)

Jump to

Keyboard shortcuts

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