MCPcopy Create free account
hub / github.com/go-json-experiment/json / reindex

Method reindex

fields.go:45–59  ·  view source on GitHub ↗

reindex recomputes index to avoid bounds check during runtime. During the construction of each [structField] in [makeStructFields], the index field is 0-indexed. However, before it returns, the 0th field is stored in index0 and index stores the remainder.

()

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

TestMakeStructFieldsFunction · 0.80
makeStructFieldsFunction · 0.80

Calls

no outgoing calls

Tested by 1

TestMakeStructFieldsFunction · 0.64