FAQ

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 a
(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.

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 3 of 5 | next ›
Discussion Overview
groupgolang-dev @
categoriesgo
postedJun 6, '13 at 9:06a
activeJun 6, '13 at 8:32p
posts5
users2
websitegolang.org

2 users in discussion

Frithjof Schulze: 3 posts Adam Langley: 2 posts

People

Translate

site design / logo © 2022 Grokbase