2016-08-22 17:50 GMT+02:00 JC <mr.jamie.caldw...@gmail.com>: > which will be stored in a slice of type byte (which will use just one uint8 > in this case).
You're probably already aware of this, but just for clarity since the "size" thing is part of subject and there is a comparison to the uint32, that string will require at least one pointer, one length, and a separate allocation for the backing array which probably has a minimum size larger than a single byte. So at minimum, on amd64, you'll get a 16 byte string header and the array allocation. //jb -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.