Documentation
¶
Overview ¶
Package basic contains common structures, slices and maps used within the jbig2 package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type IntSlice ¶
type IntSlice []int
IntSlice is the integer slice that contains panic safe methods.
type IntsMap ¶
IntsMap is a wrapper over the map[uint64][]int. The 'key' collisions are stored under subsequent slice positions.
type NumSlice ¶
type NumSlice []float32
NumSlice is the slice of the numbers that has a panic safe API.
func (NumSlice) Get ¶
Get the float32 value at 'i' index. Returns error if the index 'i' is out of range.
func (NumSlice) GetInt ¶
GetInt gets the integer value at the 'i' position. The functions return errors if the index 'i' is out of range. Returns '0' on error.
func (NumSlice) GetIntSlice ¶
GetIntSlice gets the slice of integers from the provided 'NumSlice' values.
type Stack ¶
type Stack struct { // Data keeps the stack's values. Data []interface{} // Aux is the auxiliary additional stack use for some helpers. Aux *Stack }
Stack is the LIFO data structure implementation
func (*Stack) Peek ¶
Peek returns the top element of the stack 's'. returns false if the stack is zero length.