Versions in this module Expand all Collapse all v0 v0.0.5 Sep 27, 2022 v0.0.4 Aug 31, 2022 Changes in this version + type Adjustment int + const AdjustmentAdd + const AdjustmentAnd + const AdjustmentDiv + const AdjustmentMul + const AdjustmentNone + const AdjustmentSub + type Endianness int + const BigEndian + const LittleEndian + func (en Endianness) ByteOrder() binary.ByteOrder + func (en Endianness) MaybeSwapped(swap bool) Endianness + func (en Endianness) String() string + func (en Endianness) Swapped() Endianness + type GUIDKind struct + Value []byte + type IndirectOffset struct + ByteWidth int + Endianness Endianness + IsRelative bool + OffsetAddress int64 + OffsetAdjustmentIsRelative bool + OffsetAdjustmentType Adjustment + OffsetAdjustmentValue int64 + type IntegerKind struct + AdjustmentType Adjustment + AdjustmentValue int64 + AndValue uint64 + ByteWidth int + DoAnd bool + Endianness Endianness + IntegerTest IntegerTest + MatchAny bool + Signed bool + Value uint64 + type IntegerTest int + const IntegerTestAnd + const IntegerTestEqual + const IntegerTestGreaterThan + const IntegerTestLessThan + const IntegerTestNOTAnd + const IntegerTestNotEqual + type Kind struct + Data interface{} + Family KindFamily + func (k Kind) String() string + type KindFamily int + const KindFamilyClear + const KindFamilyDefault + const KindFamilyGUID + const KindFamilyInteger + const KindFamilyName + const KindFamilyPString + const KindFamilyRegex + const KindFamilySearch + const KindFamilyString + const KindFamilySwitch + const KindFamilyUse + type LogFunc func(format string, args ...interface{}) + type Offset struct + Direct int64 + Indirect *IndirectOffset + IsRelative bool + OffsetType OffsetType + func (o Offset) Equals(b Offset) bool + func (o Offset) String() string + type OffsetType int + const OffsetTypeDirect + const OffsetTypeIndirect + type PStringKind struct + ContainsOwnLength bool + EndiannessBIG bool + LengthByte int + Value []byte + type ParseContext struct + Logf LogFunc + func (ctx *ParseContext) Parse(magicReader io.Reader, book Spellbook) error + func (ctx *ParseContext) ParseAll(magdir string, book Spellbook) error + type RegexKind struct + Flags wizardry.RegexTestFlags + MaxLen int64 + Value []byte + type Rule struct + Description []byte + Kind Kind + Level int + Line string + Offset Offset + func (r Rule) String() string + type SearchKind struct + MaxLen int64 + Value []byte + type Spellbook map[string][]Rule + func (sb Spellbook) AddRule(page string, rule Rule) + type StringKind struct + Flags wizardry.StringTestFlags + Negate bool + Value []byte + type SwitchCase struct + Description []byte + Value int64 + type SwitchKind struct + ByteWidth int + Cases []*SwitchCase + Endianness Endianness + Signed bool + type UseKind struct + Page string + SwapEndian bool