internal/lib/reflect: Value.bytesSlow
This commit is contained in:
@@ -340,7 +340,6 @@ func (v Value) Bytes() []byte {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (v Value) bytesSlow() []byte {
|
func (v Value) bytesSlow() []byte {
|
||||||
/*
|
|
||||||
switch v.kind() {
|
switch v.kind() {
|
||||||
case Slice:
|
case Slice:
|
||||||
if v.typ().Elem().Kind() != abi.Uint8 {
|
if v.typ().Elem().Kind() != abi.Uint8 {
|
||||||
@@ -360,8 +359,6 @@ func (v Value) bytesSlow() []byte {
|
|||||||
return unsafe.Slice(p, n)
|
return unsafe.Slice(p, n)
|
||||||
}
|
}
|
||||||
panic(&ValueError{"reflect.Value.Bytes", v.kind()})
|
panic(&ValueError{"reflect.Value.Bytes", v.kind()})
|
||||||
*/
|
|
||||||
panic("todo: reflect.Value.byteSlow")
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// runes returns v's underlying value.
|
// runes returns v's underlying value.
|
||||||
|
|||||||
Reference in New Issue
Block a user