Hi, target is what *you* want it to be. tvb_memcpy is a convenient way to copy a part of the tvbuff in a part of the memory *you* control. iow, you have *allocated* this part of memory and *you* are responsible to *free* this memory.
Can I ask you where is this "elsewhere" and what is its purpose? Could you not simply use the tvbuff as-is instead? Could you explain us the reasons for which you would like to use tvb_memcpy? Regards, Sebastien Tandel On Wed, Feb 25, 2009 at 14:35, <[email protected]> wrote: > I am using tvb_memcpy(tvb, void* target, offset, data_length); to grab a > single part of the tvbuff to send elsewhere for decoding. However, what is > target? i think its memory, but how do i free memory? i'm confused about how > to use tvb_memcpy for this. > > Thanks, > > Greg > ___________________________________________________________________________ > Sent via: Wireshark-dev mailing list <[email protected]> > Archives: http://www.wireshark.org/lists/wireshark-dev > Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev > mailto:[email protected]?subject=unsubscribe > >
___________________________________________________________________________ Sent via: Wireshark-dev mailing list <[email protected]> Archives: http://www.wireshark.org/lists/wireshark-dev Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev mailto:[email protected]?subject=unsubscribe
