Documentation ¶
Index ¶
- func Load(ls *persist.LoadSaver) core.Identifier
- func New(opts ...config.Option) (core.Identifier, error)
- type Big16
- func (n Big16) Equals(pat patterns.Pattern) bool
- func (n Big16) Length() (int, int)
- func (n Big16) NumSequences() int
- func (n Big16) Save(ls *persist.LoadSaver)
- func (n Big16) Sequences() []patterns.Sequence
- func (n Big16) String() string
- func (n Big16) Test(b []byte) ([]int, int)
- func (n Big16) TestR(b []byte) ([]int, int)
- type Big32
- func (n Big32) Equals(pat patterns.Pattern) bool
- func (n Big32) Length() (int, int)
- func (n Big32) NumSequences() int
- func (n Big32) Save(ls *persist.LoadSaver)
- func (n Big32) Sequences() []patterns.Sequence
- func (n Big32) String() string
- func (n Big32) Test(b []byte) ([]int, int)
- func (n Big32) TestR(b []byte) ([]int, int)
- type Host16
- func (n Host16) Equals(pat patterns.Pattern) bool
- func (n Host16) Length() (int, int)
- func (n Host16) NumSequences() int
- func (n Host16) Save(ls *persist.LoadSaver)
- func (n Host16) Sequences() []patterns.Sequence
- func (n Host16) String() string
- func (n Host16) Test(b []byte) ([]int, int)
- func (n Host16) TestR(b []byte) ([]int, int)
- type Host32
- func (n Host32) Equals(pat patterns.Pattern) bool
- func (n Host32) Length() (int, int)
- func (n Host32) NumSequences() int
- func (n Host32) Save(ls *persist.LoadSaver)
- func (n Host32) Sequences() []patterns.Sequence
- func (n Host32) String() string
- func (n Host32) Test(b []byte) ([]int, int)
- func (n Host32) TestR(b []byte) ([]int, int)
- type Identification
- type Identifier
- type IgnoreCase
- func (c IgnoreCase) Equals(pat patterns.Pattern) bool
- func (c IgnoreCase) Length() (int, int)
- func (c IgnoreCase) NumSequences() int
- func (c IgnoreCase) Save(ls *persist.LoadSaver)
- func (c IgnoreCase) Sequences() []patterns.Sequence
- func (c IgnoreCase) String() string
- func (c IgnoreCase) Test(b []byte) ([]int, int)
- func (c IgnoreCase) TestR(b []byte) ([]int, int)
- type Int8
- func (n Int8) Equals(pat patterns.Pattern) bool
- func (n Int8) Length() (int, int)
- func (n Int8) NumSequences() int
- func (n Int8) Save(ls *persist.LoadSaver)
- func (n Int8) Sequences() []patterns.Sequence
- func (n Int8) String() string
- func (n Int8) Test(b []byte) ([]int, int)
- func (n Int8) TestR(b []byte) ([]int, int)
- type Little16
- func (n Little16) Equals(pat patterns.Pattern) bool
- func (n Little16) Length() (int, int)
- func (n Little16) NumSequences() int
- func (n Little16) Save(ls *persist.LoadSaver)
- func (n Little16) Sequences() []patterns.Sequence
- func (n Little16) String() string
- func (n Little16) Test(b []byte) ([]int, int)
- func (n Little16) TestR(b []byte) ([]int, int)
- type Little32
- func (n Little32) Equals(pat patterns.Pattern) bool
- func (n Little32) Length() (int, int)
- func (n Little32) NumSequences() int
- func (n Little32) Save(ls *persist.LoadSaver)
- func (n Little32) Sequences() []patterns.Sequence
- func (n Little32) String() string
- func (n Little32) Test(b []byte) ([]int, int)
- func (n Little32) TestR(b []byte) ([]int, int)
- type Mask
- func (m Mask) Equals(pat patterns.Pattern) bool
- func (m Mask) Length() (int, int)
- func (m Mask) NumSequences() int
- func (m Mask) Save(ls *persist.LoadSaver)
- func (m Mask) Sequences() []patterns.Sequence
- func (m Mask) String() string
- func (m Mask) Test(b []byte) ([]int, int)
- func (m Mask) TestR(b []byte) ([]int, int)
- type Recorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Big16 ¶
type Big16 uint16
func (Big16) NumSequences ¶
NumSequences reports how many plain sequences are needed to represent this pattern.
type Big32 ¶
type Big32 uint32
func (Big32) NumSequences ¶
NumSequences reports how many plain sequences are needed to represent this pattern.
type Host16 ¶
type Host16 uint16
func (Host16) NumSequences ¶
NumSequences reports how many plain sequences are needed to represent this pattern.
type Host32 ¶
type Host32 uint32
func (Host32) NumSequences ¶
NumSequences reports how many plain sequences are needed to represent this pattern.
type Identification ¶
type Identification struct { Namespace string ID string Name string Basis []string Warning string // contains filtered or unexported fields }
func (Identification) Archive ¶
func (id Identification) Archive() config.Archive
func (Identification) Known ¶
func (id Identification) Known() bool
func (Identification) String ¶
func (id Identification) String() string
func (Identification) Values ¶ added in v1.7.1
func (id Identification) Values() []string
func (Identification) Warn ¶
func (id Identification) Warn() string
type Identifier ¶
type Identifier struct { *identifier.Base // contains filtered or unexported fields }
func (*Identifier) Fields ¶
func (i *Identifier) Fields() []string
func (*Identifier) Recorder ¶
func (i *Identifier) Recorder() core.Recorder
func (*Identifier) Save ¶
func (i *Identifier) Save(ls *persist.LoadSaver)
type IgnoreCase ¶
type IgnoreCase []byte
func (IgnoreCase) Equals ¶
func (c IgnoreCase) Equals(pat patterns.Pattern) bool
Equals reports whether a pattern is identical to another pattern.
func (IgnoreCase) Length ¶
func (c IgnoreCase) Length() (int, int)
Length returns a minimum and maximum length for the pattern.
func (IgnoreCase) NumSequences ¶
func (c IgnoreCase) NumSequences() int
NumSequences reports how many plain sequences are needed to represent this pattern.
func (IgnoreCase) Sequences ¶
func (c IgnoreCase) Sequences() []patterns.Sequence
Sequences converts the pattern into a slice of plain sequences.
func (IgnoreCase) String ¶
func (c IgnoreCase) String() string
type Int8 ¶
type Int8 byte
func (Int8) NumSequences ¶
NumSequences reports how many plain sequences are needed to represent this pattern.
type Little16 ¶
type Little16 uint16
func (Little16) NumSequences ¶
NumSequences reports how many plain sequences are needed to represent this pattern.
type Little32 ¶
type Little32 uint32
func (Little32) NumSequences ¶
NumSequences reports how many plain sequences are needed to represent this pattern.
type Mask ¶
type Mask struct {
// contains filtered or unexported fields
}
func (Mask) NumSequences ¶
NumSequences reports how many plain sequences are needed to represent this pattern.
type Recorder ¶
type Recorder struct { *Identifier // contains filtered or unexported fields }
func (*Recorder) Active ¶
func (r *Recorder) Active(m core.MatcherType)
func (*Recorder) Report ¶
func (r *Recorder) Report() []core.Identification