(r *runner)
| 765 | } |
| 766 | |
| 767 | func (v rawValue) Int(r *runner) int64 { |
| 768 | switch len(v.buf) { |
| 769 | case 1: |
| 770 | return int64(int8(v.Uint(r))) |
| 771 | case 2: |
| 772 | return int64(int16(v.Uint(r))) |
| 773 | case 4: |
| 774 | return int64(int32(v.Uint(r))) |
| 775 | case 8: |
| 776 | return int64(int64(v.Uint(r))) |
| 777 | default: |
| 778 | panic("unknown integer size") |
| 779 | } |
| 780 | } |
| 781 | |
| 782 | // equal returns true if (and only if) the value matches rhs. |
| 783 | func (v rawValue) equal(rhs rawValue) bool { |