]> Cypherpunks repositories - gostls13.git/commit
reflect: add Value.Bytes, Value.SetBytes methods
authorRuss Cox <rsc@golang.org>
Wed, 24 Aug 2011 02:50:08 +0000 (22:50 -0400)
committerRuss Cox <rsc@golang.org>
Wed, 24 Aug 2011 02:50:08 +0000 (22:50 -0400)
commit00d64c723947593f3957d43b18d65cd58d4aff44
tree71c64da47c894c339bb6a2ad3f25368e42ce986e
parent66bedf82210220e45ca2eb4919fe764e6a022630
reflect: add Value.Bytes, Value.SetBytes methods

This allows code that wants to handle
[]byte separately to get at the actual slice
instead of just at individual bytes.
It seems to come up often enough.

R=r
CC=golang-dev
https://golang.org/cl/4942051
src/pkg/reflect/all_test.go
src/pkg/reflect/value.go