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

Function main

tinygotest/testdata/simple_unmarshal/main.go:10–27  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8}
9
10func main() {
11 b := []byte{130, 161, 105, 1, 161, 115, 161, 50}
12
13 var e2 Example
14 extra, err := e2.UnmarshalMsg(b)
15 if err != nil {
16 panic(err)
17 }
18 if len(extra) != 0 {
19 panic("unexpected extra")
20 }
21
22 if e2.I != 1 || e2.S != "2" {
23 panic("not equal")
24 }
25
26 println("done, len(b):", len(b))
27}

Callers

nothing calls this directly

Calls 1

UnmarshalMsgMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…