Debian Codegraph @

stdlib/go1_22_encoding_gob.go

raw symbols SCIP
1 // Code generated by 'yaegi extract encoding/gob'. DO NOT EDIT.
2
3 //go:build go1.22
4 // +build go1.22
5
6 package stdlib
7
8 import (
9 "encoding/gob"
10 "reflect"
11 )
12
13 func init() {
14 Symbols["encoding/gob/gob"] = map[string]reflect.Value{
15 // function, constant and variable definitions
16 "NewDecoder": reflect.ValueOf(gob.NewDecoder),
17 "NewEncoder": reflect.ValueOf(gob.NewEncoder),
18 "Register": reflect.ValueOf(gob.Register),
19 "RegisterName": reflect.ValueOf(gob.RegisterName),
20
21 // type definitions
22 "CommonType": reflect.ValueOf((*gob.CommonType)(nil)),
23 "Decoder": reflect.ValueOf((*gob.Decoder)(nil)),
24 "Encoder": reflect.ValueOf((*gob.Encoder)(nil)),
25 "GobDecoder": reflect.ValueOf((*gob.GobDecoder)(nil)),
26 "GobEncoder": reflect.ValueOf((*gob.GobEncoder)(nil)),
27
28 // interface wrapper definitions
29 "_GobDecoder": reflect.ValueOf((*_encoding_gob_GobDecoder)(nil)),
30 "_GobEncoder": reflect.ValueOf((*_encoding_gob_GobEncoder)(nil)),
31 }
32 }
33
34 // _encoding_gob_GobDecoder is an interface wrapper for GobDecoder type
35 type _encoding_gob_GobDecoder struct {
36 IValue interface{}
37 WGobDecode func(a0 []byte) error
38 }
39
40 func (W _encoding_gob_GobDecoder) GobDecode(a0 []byte) error { return W.WGobDecode(a0) }
41
42 // _encoding_gob_GobEncoder is an interface wrapper for GobEncoder type
43 type _encoding_gob_GobEncoder struct {
44 IValue interface{}
45 WGobEncode func() ([]byte, error)
46 }
47
48 func (W _encoding_gob_GobEncoder) GobEncode() ([]byte, error) { return W.WGobEncode() }