MCPcopy
hub / github.com/tinylib/msgp / main

Function main

tinygotest/testdata/simple_bytes_append/main.go:12–30  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

10var buf [64]byte
11
12func main() {
13 e := Example{
14 I: 1,
15 S: "2",
16 }
17
18 b := buf[:0]
19 b = msgp.AppendMapHeader(b, 2)
20 b = msgp.AppendString(b, "i")
21 b = msgp.AppendInt(b, e.I)
22 b = msgp.AppendString(b, "s")
23 b = msgp.AppendString(b, e.S)
24
25 println("done, len(b):", len(b))
26 for i := 0; i < len(b); i++ {
27 print(b[i], " ")
28 }
29 println()
30}

Callers

nothing calls this directly

Calls 3

AppendMapHeaderFunction · 0.92
AppendStringFunction · 0.92
AppendIntFunction · 0.92

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…