| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 29 |
"_GobDecoder": reflect.ValueOf((*_encoding_gob_GobDecoder)(nil)), |
| 30 |
"_GobEncoder": reflect.ValueOf((*_encoding_gob_GobEncoder)(nil)), |
| 31 |
} |
| 32 |
} |
| 33 |
|
| 34 |
|
| 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 |
|
| 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() } |