Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Private constructor in ByteString
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Anatoly Deyneka  
View profile  
 More options Jun 21 2012, 2:08 am
From: Anatoly Deyneka <adeyn...@gmail.com>
Date: Wed, 20 Jun 2012 23:08:14 -0700 (PDT)
Local: Thurs, Jun 21 2012 2:08 am
Subject: Private constructor in ByteString

Why ByteString<http://code.google.com/p/protobuf/source/browse/trunk/java/src/main/j...> has
only private constructor?
Copying arrays is overhead in my case.

What's about adding valueOf or making constructor public?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Oliver Jowett  
View profile  
 More options Jun 22 2012, 4:29 am
From: Oliver Jowett <oliver.jow...@gmail.com>
Date: Fri, 22 Jun 2012 09:29:57 +0100
Local: Fri, Jun 22 2012 4:29 am
Subject: Re: [protobuf] Private constructor in ByteString

On Thu, Jun 21, 2012 at 7:08 AM, Anatoly Deyneka <adeyn...@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


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »