Re: [protobuf] packed repeated fields / extensions

2010-04-26 Thread Adam Kwintkiewicz
Thank you

2010/4/26 Jason Hsueh 

> The packed option is specified in the FieldOptions proto:
>
> const FieldDescriptor* f = ...;
> if (f->options().packed()) {
>// field is packed
> }
>
> On Mon, Apr 26, 2010 at 2:29 PM, adamdms wrote:
>
>> how to check whether the field / expansion (FieldDescriptor *) is
>> repeated with "packed = true" option?
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Protocol Buffers" group.
>> To post to this group, send email to proto...@googlegroups.com.
>> To unsubscribe from this group, send email to
>> protobuf+unsubscr...@googlegroups.com
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/protobuf?hl=en.
>>
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To post to this group, send email to proto...@googlegroups.com.
To unsubscribe from this group, send email to 
protobuf+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en.



Re: [protobuf] packed repeated fields / extensions

2010-04-26 Thread Jason Hsueh
The packed option is specified in the FieldOptions proto:

const FieldDescriptor* f = ...;
if (f->options().packed()) {
   // field is packed
}

On Mon, Apr 26, 2010 at 2:29 PM, adamdms wrote:

> how to check whether the field / expansion (FieldDescriptor *) is
> repeated with "packed = true" option?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Protocol Buffers" group.
> To post to this group, send email to proto...@googlegroups.com.
> To unsubscribe from this group, send email to
> protobuf+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/protobuf?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To post to this group, send email to proto...@googlegroups.com.
To unsubscribe from this group, send email to 
protobuf+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en.



[protobuf] packed repeated fields / extensions

2010-04-26 Thread adamdms
how to check whether the field / expansion (FieldDescriptor *) is
repeated with "packed = true" option?

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To post to this group, send email to proto...@googlegroups.com.
To unsubscribe from this group, send email to 
protobuf+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en.