shiftNRuneBytes() — gin Function Reference
Architecture documentation for the shiftNRuneBytes() function in tree.go from the gin codebase.
Entity Profile
Dependency Diagram
graph TD 817a4f5f_3c8d_35f5_7797_cf3fdb805bce["shiftNRuneBytes()"] c26db86d_6014_ffb1_aad9_2c5f3b61998b["tree.go"] 817a4f5f_3c8d_35f5_7797_cf3fdb805bce -->|defined in| c26db86d_6014_ffb1_aad9_2c5f3b61998b style 817a4f5f_3c8d_35f5_7797_cf3fdb805bce 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
Defined In
Source
Frequently Asked Questions
What does shiftNRuneBytes() do?
shiftNRuneBytes() is a function in the gin codebase, defined in tree.go.
Where is shiftNRuneBytes() defined?
shiftNRuneBytes() is defined in tree.go at line 687.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free