ExtractSubrange will just copy the values into an array that you provide,
so it's up to you how you want to manage that memory.

On Thu, Jan 31, 2019 at 4:19 AM 윤석영 <[email protected]> wrote:

> Hello,
>
> I have a question about ExtractSubrange.
>
> When calling the ExtractSubrange function, do I have to release the memory
> of the extracted List?
>
> void RepeatedField::ExtractSubrange(
>         int start,
>         int num,
>         Element * elements)
>
> if I have to do, when elements is NULL, how can I do it.
>
>
> Thank you
>
> --
> You received this message because you are subscribed to the Google Groups
> "Protocol Buffers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/protobuf.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.

Reply via email to