diff options
author | Ben Johnson <benbjohnson@yahoo.com> | 2014-02-07 15:03:29 -0700 |
---|---|---|
committer | Ben Johnson <benbjohnson@yahoo.com> | 2014-02-07 15:03:29 -0700 |
commit | 84939c21f68e6d4158cf2506851ab4db2f0afe78 (patch) | |
tree | 53ed265c1c46f04784831084aa74491f4fe115ed /page.go | |
parent | Clean up. (diff) | |
download | dedo-84939c21f68e6d4158cf2506851ab4db2f0afe78.tar.gz dedo-84939c21f68e6d4158cf2506851ab4db2f0afe78.tar.xz |
Refactor node lookup.
Diffstat (limited to 'page.go')
-rw-r--r-- | page.go | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -33,6 +33,12 @@ type page struct { ptr uintptr } +// pageElementRef represents a reference to an element on a given page. +type pageElementRef struct { + page *page + index uint16 +} + // typ returns a human readable page type string used for debugging. func (p *page) typ() string { if (p.flags & p_branch) != 0 { |