shiftNRuneBytes() — gin Function Reference
Architecture documentation for the shiftNRuneBytes() function in tree.go from the gin codebase.
Entity Profile
Dependency Diagram
graph TD 4c26b220_0965_b800_2064_7ad3ab83819f["shiftNRuneBytes()"] 8277b594_6f98_cdeb_7479_234057d43043["findCaseInsensitivePathRec()"] 8277b594_6f98_cdeb_7479_234057d43043 -->|calls| 4c26b220_0965_b800_2064_7ad3ab83819f style 4c26b220_0965_b800_2064_7ad3ab83819f fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tree.go lines 687–700
func shiftNRuneBytes(rb [4]byte, n int) [4]byte {
switch n {
case 0:
return rb
case 1:
return [4]byte{rb[1], rb[2], rb[3], 0}
case 2:
return [4]byte{rb[2], rb[3]}
case 3:
return [4]byte{rb[3]}
default:
return [4]byte{}
}
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does shiftNRuneBytes() do?
shiftNRuneBytes() is a function in the gin codebase.
What calls shiftNRuneBytes()?
shiftNRuneBytes() is called by 1 function(s): findCaseInsensitivePathRec.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free