MCPcopy Create free account
hub / github.com/buger/jsonparser / sameTree

Function sameTree

parser.go:569–582  ·  view source on GitHub ↗

SYS-REQ-008

(p1, p2 []string)

Source from the content-addressed store, hash-verified

567
568// SYS-REQ-008
569func sameTree(p1, p2 []string) bool {
570 minLen := len(p1)
571 if len(p2) < minLen {
572 minLen = len(p2)
573 }
574
575 for pi_1, p_1 := range p1[:minLen] {
576 if p2[pi_1] != p_1 {
577 return false
578 }
579 }
580
581 return true
582}
583
584const stackArraySize = 128
585

Callers 3

EachKeyFunction · 0.85
EachKeyErrFunction · 0.85

Calls

no outgoing calls

Tested by 1