On Thu, Jun 6, 2013 at 5:06 AM, wrote:
Also I think it should be documented, that the capacity of the out
argument has to be big enough to hold message (and poly1305.TagSize more
bytes).
Otherwise append might reallocate changing only the local copy of the
reference to out. E.g. http://play.golang.org/p/YGbsHyBjND
Also I think it should be documented, that the capacity of the out
argument has to be big enough to hold message (and poly1305.TagSize more
bytes).
Otherwise append might reallocate changing only the local copy of the
reference to out. E.g. http://play.golang.org/p/YGbsHyBjND
(possibly nil) buffer and return the updated value. That value may
alias the argument, if there was sufficient capacity, or may be a
fresh buffer.
Perhaps the arguments are confusingly named?
Cheers
AGL
--
---
You received this message because you are subscribed to the Google Groups "golang-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.