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

Function NewIterator

niterator/unrollinreversehardcode/iterator.go:23–36  ·  view source on GitHub ↗
(ap *shape.AP)

Source from the content-addressed store, hash-verified

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

Callers 1

Calls

no outgoing calls

Tested by 1