Still, if I understand correctly this program
http://play.golang.org/p/SRq2AqA4Dz
should print 'FirstPart SecondPart', but it prints 'SecondPart'.
Best, Frithjof
On Thu, Jun 6, 2013 at 4:47 PM, Adam Langley wrote:
(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
--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
The functions are designed to work like append() - they take aAlso 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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.