| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
package stdlib |
| 7 |
|
| 8 |
import ( |
| 9 |
"go/constant" |
| 10 |
"go/token" |
| 11 |
"hash/crc32" |
| 12 |
"reflect" |
| 13 |
) |
| 14 |
|
| 15 |
func init() { |
| 16 |
Symbols["hash/crc32/crc32"] = map[string]reflect.Value{ |
| 17 |
|
| 18 |
"Castagnoli": reflect.ValueOf(constant.MakeFromLiteral("2197175160", token.INT, 0)), |
| 19 |
"Checksum": reflect.ValueOf(crc32.Checksum), |
| 20 |
"ChecksumIEEE": reflect.ValueOf(crc32.ChecksumIEEE), |
| 21 |
"IEEE": reflect.ValueOf(constant.MakeFromLiteral("3988292384", token.INT, 0)), |
| 22 |
"IEEETable": reflect.ValueOf(&crc32.IEEETable).Elem(), |
| 23 |
"Koopman": reflect.ValueOf(constant.MakeFromLiteral("3945912366", token.INT, 0)), |
| 24 |
"MakeTable": reflect.ValueOf(crc32.MakeTable), |
| 25 |
"New": reflect.ValueOf(crc32.New), |
| 26 |
"NewIEEE": reflect.ValueOf(crc32.NewIEEE), |
| 27 |
"Size": reflect.ValueOf(constant.MakeFromLiteral("4", token.INT, 0)), |
| 28 |
"Update": reflect.ValueOf(crc32.Update), |
| 29 |
|
| 30 |
|
| 31 |
"Table": reflect.ValueOf((*crc32.Table)(nil)), |
| 32 |
} |
| 33 |
} |