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

Function makeString

intern.go:20–55  ·  view source on GitHub ↗

256*unsafe.Sizeof(string("")) => 4KiB makeString returns the string form of b. It returns a pre-allocated string from c if present, otherwise it allocates a new string, inserts it into the cache, and returns it.

(c *stringCache, b []byte)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 4

makeStringArshalerFunction · 0.85
unmarshalValueAnyFunction · 0.85
TestInternFunction · 0.85
BenchmarkInternFunction · 0.85

Calls 1

hash64Function · 0.85

Tested by 2

TestInternFunction · 0.68
BenchmarkInternFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…