flhash

package
v0.69.4 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2024 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SaveFile

func SaveFile(name string) string

Types

type HashCode

type HashCode int

func HashNickname

func HashNickname(name string) HashCode

type NameHash

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

NameHash implements the hashing algorithm used by the account folders and save files.

func NewNameHasher

func NewNameHasher() *NameHash

func (*NameHash) Hash

func (h *NameHash) Hash(name string) uint32

func (*NameHash) RawHash

func (h *NameHash) RawHash(data []byte) uint32

Function for calculating the Freelancer data nickname hash. Algorithm from flhash.exe by sherlog@t-online.de (2003-06-11)

func (*NameHash) SaveFile

func (h *NameHash) SaveFile(name string) string

type NicknameHasher

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

NicknameHasher implements the hashing algorithm used by item, base, etc. nicknames

func NewHasher

func NewHasher() *NicknameHasher

func (*NicknameHasher) Hash

func (h *NicknameHasher) Hash(name string) HashCode

func (*NicknameHasher) RawHash

func (h *NicknameHasher) RawHash(data []byte) uint32

Function for calculating the Freelancer data nickname hash. Algorithm from flhash.exe by sherlog@t-online.de (2003-06-11)

Jump to

Keyboard shortcuts

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