Re: [protobuf] Private constructor in ByteString

41 views
Skip to first unread message

Oliver Jowett

unread,
Jun 22, 2012, 4:29:57 AM6/22/12
to Anatoly Deyneka, prot...@googlegroups.com
On Thu, Jun 21, 2012 at 7:08 AM, Anatoly Deyneka <adey...@gmail.com> wrote:
> Why ByteString has only private constructor?
> Copying arrays is overhead in my case.

I believe it's that way to guarantee the immutability of a ByteString.

Oliver
Reply all
Reply to author
Forward
0 new messages