Documentation ¶
Index ¶
- Constants
- func BytesToStr_trim_0s(data []byte) string
- func GetIDs() []int
- func NumBytesToStr(num_bytes uint64) string
- func ReadBytes(f *os.File, f_begin int64, f_length int64, buf []byte, offset int64) error
- func SFZ_ParseMetadata(v []view.StringPair, md *SFZ_Metadata) []view.StringPair
- func SFZ_ReadMetadata(md *SFZ_Metadata, fd io.Reader, size int64) error
- type BIN
- func (self *BIN) GetImage(file_name string) (image.Image, error)
- func (self *BIN) GetMetadata(file_name string) (string, error)
- func (self *BIN) GetName() string
- func (self *BIN) GetShortName() string
- func (self *BIN) IsImage() bool
- func (self *BIN) ParseMetadata(v []view.StringPair, meta_data string) []view.StringPair
- type CXI
- func (self *CXI) GetImage(file_name string) (image.Image, error)
- func (self *CXI) GetMetadata(file_name string) (string, error)
- func (self *CXI) GetName() string
- func (self *CXI) GetShortName() string
- func (self *CXI) IsImage() bool
- func (self *CXI) ParseMetadata(v []view.StringPair, meta_data string) []view.StringPair
- type FileType
- type GBC
- func (self *GBC) GetImage(file_name string) (image.Image, error)
- func (self *GBC) GetMetadata(file_name string) (string, error)
- func (self *GBC) GetName() string
- func (self *GBC) GetShortName() string
- func (self *GBC) IsImage() bool
- func (self *GBC) ParseMetadata(v []view.StringPair, meta_data string) []view.StringPair
- type GG
- func (self *GG) GetImage(file_name string) (image.Image, error)
- func (self *GG) GetMetadata(file_name string) (string, error)
- func (self *GG) GetName() string
- func (self *GG) GetShortName() string
- func (self *GG) IsImage() bool
- func (self *GG) ParseMetadata(v []view.StringPair, meta_data string) []view.StringPair
- type JPEG
- func (self *JPEG) GetImage(file_name string) (image.Image, error)
- func (self *JPEG) GetMetadata(file_name string) (string, error)
- func (self *JPEG) GetName() string
- func (self *JPEG) GetShortName() string
- func (self *JPEG) IsImage() bool
- func (self *JPEG) ParseMetadata(v []view.StringPair, meta_data string) []view.StringPair
- type KeyValue
- type MD
- func (self *MD) GetImage(file_name string) (image.Image, error)
- func (self *MD) GetMetadata(file_name string) (string, error)
- func (self *MD) GetName() string
- func (self *MD) GetShortName() string
- func (self *MD) IsImage() bool
- func (self *MD) ParseMetadata(v []view.StringPair, meta_data string) []view.StringPair
- type N3DS
- func (self *N3DS) GetImage(file_name string) (image.Image, error)
- func (self *N3DS) GetMetadata(file_name string) (string, error)
- func (self *N3DS) GetName() string
- func (self *N3DS) GetShortName() string
- func (self *N3DS) IsImage() bool
- func (self *N3DS) ParseMetadata(v []view.StringPair, meta_data string) []view.StringPair
- type NDS
- func (self *NDS) GetImage(file_name string) (image.Image, error)
- func (self *NDS) GetMetadata(file_name string) (string, error)
- func (self *NDS) GetName() string
- func (self *NDS) GetShortName() string
- func (self *NDS) IsImage() bool
- func (self *NDS) ParseMetadata(v []view.StringPair, meta_data string) []view.StringPair
- type NES
- func (self *NES) GetImage(file_name string) (image.Image, error)
- func (self *NES) GetMetadata(file_name string) (string, error)
- func (self *NES) GetName() string
- func (self *NES) GetShortName() string
- func (self *NES) IsImage() bool
- func (self *NES) ParseMetadata(v []view.StringPair, meta_data string) []view.StringPair
- type PNG
- func (self *PNG) GetImage(file_name string) (image.Image, error)
- func (self *PNG) GetMetadata(file_name string) (string, error)
- func (self *PNG) GetName() string
- func (self *PNG) GetShortName() string
- func (self *PNG) IsImage() bool
- func (self *PNG) ParseMetadata(v []view.StringPair, meta_data string) []view.StringPair
- type PS1
- func (self *PS1) GetImage(file_name string) (image.Image, error)
- func (self *PS1) GetMetadata(file_name string) (string, error)
- func (self *PS1) GetName() string
- func (self *PS1) GetShortName() string
- func (self *PS1) IsImage() bool
- func (self *PS1) ParseMetadata(v []view.StringPair, meta_data string) []view.StringPair
- type PS1_Aux
- func (self *PS1_Aux) GetImage(file_name string) (image.Image, error)
- func (self *PS1_Aux) GetMetadata(file_name string) (string, error)
- func (self *PS1_Aux) GetName() string
- func (self *PS1_Aux) GetShortName() string
- func (self *PS1_Aux) IsImage() bool
- func (self *PS1_Aux) ParseMetadata(v []view.StringPair, meta_data string) []view.StringPair
- type PS2
- func (self *PS2) GetImage(file_name string) (image.Image, error)
- func (self *PS2) GetMetadata(file_name string) (string, error)
- func (self *PS2) GetName() string
- func (self *PS2) GetShortName() string
- func (self *PS2) IsImage() bool
- func (self *PS2) ParseMetadata(v []view.StringPair, meta_data string) []view.StringPair
- type PSP
- func (self *PSP) GetImage(file_name string) (image.Image, error)
- func (self *PSP) GetMetadata(file_name string) (string, error)
- func (self *PSP) GetName() string
- func (self *PSP) GetShortName() string
- func (self *PSP) IsImage() bool
- func (self *PSP) ParseMetadata(v []view.StringPair, meta_data string) []view.StringPair
- type SFZ
- func (self *SFZ) GetImage(file_name string) (image.Image, error)
- func (self *SFZ) GetMetadata(file_name string) (string, error)
- func (self *SFZ) GetName() string
- func (self *SFZ) GetShortName() string
- func (self *SFZ) IsImage() bool
- func (self *SFZ) ParseMetadata(v []view.StringPair, meta_data string) []view.StringPair
- type SFZ_Metadata
- type SubfileReader
- type TAR
- func (self *TAR) GetImage(file_name string) (image.Image, error)
- func (self *TAR) GetMetadata(file_name string) (string, error)
- func (self *TAR) GetName() string
- func (self *TAR) GetShortName() string
- func (self *TAR) IsImage() bool
- func (self *TAR) ParseMetadata(v []view.StringPair, meta_data string) []view.StringPair
- type ZBlorb
- func (self *ZBlorb) GetImage(file_name string) (image.Image, error)
- func (self *ZBlorb) GetMetadata(file_name string) (string, error)
- func (self *ZBlorb) GetName() string
- func (self *ZBlorb) GetShortName() string
- func (self *ZBlorb) IsImage() bool
- func (self *ZBlorb) ParseMetadata(v []view.StringPair, meta_data string) []view.StringPair
- type ZIP
- func (self *ZIP) GetImage(file_name string) (image.Image, error)
- func (self *ZIP) GetMetadata(file_name string) (string, error)
- func (self *ZIP) GetName() string
- func (self *ZIP) GetShortName() string
- func (self *ZIP) IsImage() bool
- func (self *ZIP) ParseMetadata(v []view.StringPair, meta_data string) []view.StringPair
Constants ¶
View Source
const ID_ARCH_TAR = 0x301
View Source
const ID_ARCH_ZIP = 0x300
View Source
const ID_AUX_CD_PS1 = 0x500
View Source
const ID_BIN = 0x000
IDENTIFICADORS MOLT IMPORTANT!!! NO REASSIGNAR IDS. PUC TORNAR-LOS EN L'ORDRE QUE VULLGA, PERÒ NO PUC MODIFICAR ELS IDS.
View Source
const ID_CD_PS1 = 0x600
View Source
const ID_DVD_PS2 = 0x602
View Source
const ID_EXE_CXI = 0x402
View Source
const ID_EXE_SFZ = 0x400
View Source
const ID_EXE_ZBLORB = 0x401
View Source
const ID_IMAGE_JPEG = 0x101
View Source
const ID_IMAGE_PNG = 0x100
View Source
const ID_ROM_3DS = 0x205
View Source
const ID_ROM_GBC = 0x201
View Source
const ID_ROM_GG = 0x200
View Source
const ID_ROM_MD = 0x202
View Source
const ID_ROM_NDS = 0x204
View Source
const ID_ROM_NES = 0x203
View Source
const ID_UMD_PSP = 0x601
Variables ¶
This section is empty.
Functions ¶
func BytesToStr_trim_0s ¶
func NumBytesToStr ¶
func SFZ_ParseMetadata ¶
func SFZ_ParseMetadata( v []view.StringPair, md *SFZ_Metadata, ) []view.StringPair
func SFZ_ReadMetadata ¶
func SFZ_ReadMetadata(md *SFZ_Metadata, fd io.Reader, size int64) error
Types ¶
type BIN ¶
type BIN struct { }
func (*BIN) GetShortName ¶
func (*BIN) ParseMetadata ¶
func (self *BIN) ParseMetadata( v []view.StringPair, meta_data string, ) []view.StringPair
type CXI ¶
type CXI struct { }
func (*CXI) GetShortName ¶
func (*CXI) ParseMetadata ¶
func (self *CXI) ParseMetadata( v []view.StringPair, meta_data string, ) []view.StringPair
type FileType ¶
type FileType interface { // Torna la imatge del fitxer indicat (d'acord amb aquest tipus). GetImage(file_name string) (image.Image, error) // Aquest mètode te dos propòstis: // 1) Torna en un string amb les metadades. // 2) Comprovar que efectivament el fitxer és del tipus indicat. // // NOTA! El 'fd' no té perquè estar apuntant al principi del fitxer, // però es pot i es deu rebobinar. GetMetadata(file_name string) (string, error) // Torna el nom GetName() string // Un nom curt sense espais i en majúscules GetShortName() string // Indica si d'aquest tipus es pot obtindre una imatge IsImage() bool // Parseja el string que conté el json i afegeix els valors al // StringPairs. ParseMetadata(v []view.StringPair, meta_data string) []view.StringPair }
type GBC ¶
type GBC struct { }
func (*GBC) GetShortName ¶
func (*GBC) ParseMetadata ¶
func (self *GBC) ParseMetadata( v []view.StringPair, meta_data string, ) []view.StringPair
type GG ¶
type GG struct { }
func (*GG) GetShortName ¶
func (*GG) ParseMetadata ¶
func (self *GG) ParseMetadata( v []view.StringPair, meta_data string, ) []view.StringPair
type JPEG ¶
type JPEG struct { }
func (*JPEG) GetShortName ¶
func (*JPEG) ParseMetadata ¶
func (self *JPEG) ParseMetadata( v []view.StringPair, meta_data string, ) []view.StringPair
type MD ¶
type MD struct { }
func (*MD) GetShortName ¶
func (*MD) ParseMetadata ¶
func (self *MD) ParseMetadata( v []view.StringPair, meta_data string, ) []view.StringPair
type N3DS ¶
type N3DS struct { }
func (*N3DS) GetShortName ¶
func (*N3DS) ParseMetadata ¶
func (self *N3DS) ParseMetadata( v []view.StringPair, meta_data string, ) []view.StringPair
type NDS ¶
type NDS struct { }
func (*NDS) GetShortName ¶
func (*NDS) ParseMetadata ¶
func (self *NDS) ParseMetadata( v []view.StringPair, meta_data string, ) []view.StringPair
type NES ¶
type NES struct { }
func (*NES) GetShortName ¶
func (*NES) ParseMetadata ¶
func (self *NES) ParseMetadata( v []view.StringPair, meta_data string, ) []view.StringPair
type PNG ¶
type PNG struct { }
func (*PNG) GetShortName ¶
func (*PNG) ParseMetadata ¶
func (self *PNG) ParseMetadata( v []view.StringPair, meta_data string, ) []view.StringPair
type PS1 ¶
type PS1 struct { }
func (*PS1) GetShortName ¶
func (*PS1) ParseMetadata ¶
func (self *PS1) ParseMetadata( v []view.StringPair, meta_data string, ) []view.StringPair
type PS1_Aux ¶
type PS1_Aux struct { }
Fitxers auxiliars que s'ha de guardar en el mateix lloc.
func (*PS1_Aux) GetShortName ¶
func (*PS1_Aux) ParseMetadata ¶
func (self *PS1_Aux) ParseMetadata( v []view.StringPair, meta_data string, ) []view.StringPair
type PS2 ¶
type PS2 struct { }
func (*PS2) GetShortName ¶
func (*PS2) ParseMetadata ¶
func (self *PS2) ParseMetadata( v []view.StringPair, meta_data string, ) []view.StringPair
type PSP ¶
type PSP struct { }
func (*PSP) GetShortName ¶
func (*PSP) ParseMetadata ¶
func (self *PSP) ParseMetadata( v []view.StringPair, meta_data string, ) []view.StringPair
type SFZ ¶
type SFZ struct { }
func (*SFZ) GetShortName ¶
func (*SFZ) ParseMetadata ¶
func (self *SFZ) ParseMetadata( v []view.StringPair, meta_data string, ) []view.StringPair
type SFZ_Metadata ¶
type SubfileReader ¶
type SubfileReader struct {
// contains filtered or unexported fields
}
func NewSubfileReader ¶
func (*SubfileReader) Size ¶
func (self *SubfileReader) Size() int64
type TAR ¶
type TAR struct{}
func (*TAR) GetShortName ¶
func (*TAR) ParseMetadata ¶
func (self *TAR) ParseMetadata( v []view.StringPair, meta_data string, ) []view.StringPair
type ZBlorb ¶
type ZBlorb struct { }
func (*ZBlorb) GetShortName ¶
func (*ZBlorb) ParseMetadata ¶
func (self *ZBlorb) ParseMetadata( v []view.StringPair, meta_data string, ) []view.StringPair
type ZIP ¶
type ZIP struct{}
func (*ZIP) GetShortName ¶
func (*ZIP) ParseMetadata ¶
func (self *ZIP) ParseMetadata( v []view.StringPair, meta_data string, ) []view.StringPair
Click to show internal directories.
Click to hide internal directories.