Thank you for your answer. 
So, If I want to just release the memory, Is there nothing I have to except 
to assign null pointer for elements argument ? 

2019년 2월 1일 금요일 오전 4시 11분 6초 UTC+9, Adam Cozzette 님의 말:
>
> 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] <javascript:>> 
> 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] <javascript:>.
>> To post to this group, send email to [email protected] 
>> <javascript:>.
>> 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