code: func (cmd *PageCommand) PrintBranch(w io.Writer, buf []byte) error {
  	p := (*page)(unsafe.Pointer(&buf[0]))
  
  	// Print number of items.
  	fmt.Fprintf(w, "Item Count: %d\n", p.count)
  	fmt.Fprintf(w, "\n")
  
  	// Print each key/value.
  	for i := uint16(0); i < p.count; i++ {
  		e := p.branchPageElement(i)
  
  		// Format key as string.
  		var k string
  		if isPrintable(string(e.key())) {
  			k = fmt.Sprintf("%q", string(e.key()))
  		} else {
  			k = fmt.Sprintf("%x", string(e.key()))
  		}
  
  		fmt.Fprintf(w, "%s: <pgid=%d>\n", k, e.pgid)
  	}
  	fmt.Fprintf(w, "\n")
  	return nil
  }
docs: // PrintBranch prints the data for a leaf page.