shared

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decrypt

func Decrypt(data, prefix, xor []byte) []byte

func Encrypt

func Encrypt(data, prefix, xor []byte) []byte

func GuessIsProfileSav

func GuessIsProfileSav(name string) bool

func ReadGuid

func ReadGuid(r io.Reader) string

func ReadInt

func ReadInt(r io.Reader) int

func ReadNBytes

func ReadNBytes(r io.Reader, n int) []byte

func ReadShort

func ReadShort(r io.Reader) int

func ReadString

func ReadString(r io.Reader) string

func SerializeHeader

func SerializeHeader(writer io.Writer, s SavFile, content []byte)

func WriteBytes

func WriteBytes(w io.Writer, bs []byte)

func WriteGuid

func WriteGuid(w io.Writer, guid string)

func WriteInt

func WriteInt(w io.Writer, i int)

func WriteShort

func WriteShort(w io.Writer, i int)

func WriteString

func WriteString(w io.Writer, s string)

Types

type CustomFormatData

type CustomFormatData struct {
	Guid  string
	Entry int
}

type SavFile

type SavFile struct {
	SgVersion          int
	PkgVersion         int
	EngineMajorVersion int
	EngineMinorVersion int
	EnginePatchVersion int
	EngineBuildVersion int
	BuildId            string
	FmtVersion         int
	FmtCount           int
	CustomFmtData      []CustomFormatData
	SgType             string
}

func DeserializeHeader

func DeserializeHeader(reader io.Reader) (SavFile, []byte)

Jump to

Keyboard shortcuts

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