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

Function sameTree

parser.go:550–563  ·  view source on GitHub ↗

SYS-REQ-008

(p1, p2 []string)

Source from the content-addressed store, hash-verified

548
549// SYS-REQ-008
550func sameTree(p1, p2 []string) bool {
551 minLen := len(p1)
552 if len(p2) < minLen {
553 minLen = len(p2)
554 }
555
556 for pi_1, p_1 := range p1[:minLen] {
557 if p2[pi_1] != p_1 {
558 return false
559 }
560 }
561
562 return true
563}
564
565const stackArraySize = 128
566

Callers 3

EachKeyFunction · 0.85
EachKeyErrFunction · 0.85

Calls

no outgoing calls

Tested by 1