MCPcopy Index your code
hub / github.com/tinygo-org/tinygo / Int

Method Int

interp/memory.go:767–780  ·  view source on GitHub ↗
(r *runner)

Source from the content-addressed store, hash-verified

765}
766
767func (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.
783func (v rawValue) equal(rhs rawValue) bool {

Callers 1

StringMethod · 0.95

Calls 1

UintMethod · 0.95

Tested by

no test coverage detected