diff --git a/src/reflect/value.go b/src/reflect/value.go index 2bc797e3..ec4f8efa 100644 --- a/src/reflect/value.go +++ b/src/reflect/value.go @@ -539,6 +539,14 @@ func maskAndShift(value, offset, size uintptr) uintptr { return (uintptr(value) >> (offset * 8)) & mask } +func (v Value) NumMethod() int { + return v.typecode.NumMethod() +} + +func (v Value) OverflowFloat(x float64) bool { + panic("unimplemented: (reflect.Value).OverflowFloat()") +} + func (v Value) MapKeys() []Value { panic("unimplemented: (reflect.Value).MapKeys()") } @@ -662,6 +670,18 @@ func (v Value) SetString(x string) { } } +func (v Value) SetBytes(x []byte) { + panic("unimplemented: (reflect.Value).SetBytes()") +} + +func (v Value) SetCap(n int) { + panic("unimplemented: (reflect.Value).SetCap()") +} + +func (v Value) SetLen(n int) { + panic("unimplemented: (reflect.Value).SetLen()") +} + func (v Value) checkAddressable() { if !v.isIndirect() { panic("reflect: value is not addressable")