Descriptionbytes: add Capped function to set a byte slice's capacity
Proposal. New function to set a []byte's capacity down to
its length.
This isn't a general purpose fix to Issue 1642, but it's
one of the (most?) common uses.
I'd like to be able to use this on App Engine, which doesn't
permit untrusted code from using the unsafe package.
Update issue 1642
Patch Set 1 #Patch Set 2 : diff -r 8fa3f49f6ab1 https://go.googlecode.com/hg/ #Patch Set 3 : diff -r 8fa3f49f6ab1 https://go.googlecode.com/hg/ #
MessagesTotal messages: 4
|