* Peng Yu <pengyu...@gmail.com> [180118 18:37]: > Dan & Bruno, > > I didn't realize that it is as simple as that :) Thanks. > > Does it involve any extra copy of the byte slice? Or f.Write literally > access the memory of d and only access 2 bytes of data for writing to > the buffer?
The blog entry https://blog.golang.org/go-slices-usage-and-internals will give you some good info about this. ...Marvin -- 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.