Lines Matching full:reflect
28 "reflect"
202 // Fallback to reflect-based decoding.
203 v := reflect.ValueOf(data)
206 case reflect.Ptr:
209 case reflect.Slice:
213 return errors.New("binary.Read: invalid type " + reflect.TypeOf(data).String())
308 // Fallback to reflect-based encoding.
309 v := reflect.Indirect(reflect.ValueOf(data))
312 return errors.New("binary.Write: invalid type " + reflect.TypeOf(data).String())
325 return dataSize(reflect.Indirect(reflect.ValueOf(v)))
332 func dataSize(v reflect.Value) int {
333 if v.Kind() == reflect.Slice {
343 func sizeof(t reflect.Type) int {
345 case reflect.Array:
350 case reflect.Struct:
361 case reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64,
362 reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64,
363 reflect.Float32, reflect.Float64, reflect.Complex64, reflect.Complex128:
438 func (d *decoder) value(v reflect.Value) {
440 case reflect.Array:
446 case reflect.Struct:
462 case reflect.Slice:
468 case reflect.Int8:
470 case reflect.Int16:
472 case reflect.Int32:
474 case reflect.Int64:
477 case reflect.Uint8:
479 case reflect.Uint16:
481 case reflect.Uint32:
483 case reflect.Uint64:
486 case reflect.Float32:
488 case reflect.Float64:
491 case reflect.Complex64:
496 case reflect.Complex128:
504 func (e *encoder) value(v reflect.Value) {
506 case reflect.Array:
512 case reflect.Struct:
524 case reflect.Slice:
530 case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64:
532 case reflect.Int8:
534 case reflect.Int16:
536 case reflect.Int32:
538 case reflect.Int64:
542 case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64, reflect.Uintptr:
544 case reflect.Uint8:
546 case reflect.Uint16:
548 case reflect.Uint32:
550 case reflect.Uint64:
554 case reflect.Float32, reflect.Float64:
556 case reflect.Float32:
558 case reflect.Float64:
562 case reflect.Complex64, reflect.Complex128:
564 case reflect.Complex64:
568 case reflect.Complex128:
576 func (d *decoder) skip(v reflect.Value) {
580 func (e *encoder) skip(v reflect.Value) {