MCPcopy Create free account
hub / github.com/egonelbre/exp / NewIterator

Function NewIterator

niterator/unrollinreversebool/iterator.go:21–33  ·  view source on GitHub ↗
(ap *shape.AP)

Source from the content-addressed store, hash-verified

19}
20
21func NewIterator(ap *shape.AP) *Iterator {
22 track := [4]Index{}
23 for i := range ap.Shape {
24 track[3-i].Track = uint32(ap.Shape[i])
25 track[3-i].Shape = uint32(ap.Shape[i])
26 track[3-i].Stride = uint32(ap.Stride[i])
27 }
28
29 return &Iterator{
30 AP: ap,
31 Track: track,
32 }
33}
34
35func (it *Iterator) IsDone() bool {
36 return it.Done

Callers 1

Calls

no outgoing calls

Tested by 1