MCPcopy Create free account
hub / github.com/cockroachdb/cockroachdb-parser / jsonEncoded

Struct jsonEncoded

pkg/util/json/encoded.go:21–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19)
20
21type jsonEncoded struct {
22 // containerLength is only set if this is an object or an array.
23 containerLen int
24 typ Type
25 // value contains the encoding of this JSON value. In the case of
26 // arrays and objects, value contains the container header, but it never
27 // contains a scalar container header.
28 value []byte
29
30 // TODO(justin): for simplicity right now we use a mutex, we could be using
31 // an atomic CAS though.
32 mu struct {
33 syncutil.RWMutex
34
35 cachedDecoded JSON
36 }
37}
38
39const jsonEncodedSize = unsafe.Sizeof(jsonEncoded{})
40

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected