Skip to content

Instantly share code, notes, and snippets.

@richardlehane
Last active August 29, 2015 13:57
Show Gist options
  • Save richardlehane/9595023 to your computer and use it in GitHub Desktop.
Save richardlehane/9595023 to your computer and use it in GitHub Desktop.
type keyFrame struct {
Typ OffType // defined in frames.go
Min int
Max int
Alive func(int)(bool, int, int) // return L and R distances for tests
}
@richardlehane
Copy link
Author

An alive func might say: has my BOF kf matched? Or is the offset in the Min/Max range? Write these funcs to return as soon as possible. A default alive func is func(i int) bool {return true}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment