Documentation ¶
Overview ¶
Package metadata implements the small metadata database written to each directory on the MegaSD filesystem that contains ROM and/or CD images.
Index ¶
Constants ¶
View Source
const ( // Filename is the expected filename used when writing to disk Filename = "games.dbs" // ScreenshotSize defines the expected size in bytes of each screenshot ScreenshotSize = 2048 )
Variables ¶
This section is empty.
Functions ¶
func CRCFilename ¶
CRCFilename computes the CRC of a given filename using the same algorithm as implemented in the MegaSD firmware
Types ¶
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
DB is the metadata database object. It implements the encoding.BinaryMarshaler and encoding.BinaryUnmarshaler interfaces.
func (*DB) MarshalBinary ¶
MarshalBinary encodes the database into binary form and returns the result
func (*DB) UnmarshalBinary ¶
UnmarshalBinary decodes the database from binary form
Click to show internal directories.
Click to hide internal directories.