<div dir="auto"><div><br><div class="gmail_extra"><br><div class="gmail_quote">Le 16 mars 2017 5:45 AM, "dingoegret" <<a href="mailto:sephvelut@gmail.com">sephvelut@gmail.com</a>> a écrit :<br type="attribution"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">with gst_adapter_available i can get the size (gsize) of bytesof char data in<br>
the adapter.<br>
<br>
with gst_adapter_map i can get the actual data as const void*<br>
(gconstpointer).<br>
<br>
now if i cast the gconstpointer to an unsigned *char, does that mean i get<br>
back an array of pointers to char bytes where the size of the array of<br>
pointers is the returned gsize? as in i could access data[0], data[1],<br>
data[2] ... data[returned_gsize]? and get back pointers to the actual<br>
singular bytes of supposed unsigned chars? this is what im trying to<br>
understand. What is the data?<br></blockquote></div></div></div><div dir="auto"><br></div><div dir="auto">Yes, the size is in bytes. And by indexing it you get the value, not the pointer. Also, index starts at 0, so the max is data[size - 1]</div><div dir="auto"><br></div><div dir="auto"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://gstreamer-devel.966125.n4.nabble.com/How-to-operate-on-GstMapInfo-tp4682202p4682252.html" rel="noreferrer" target="_blank">http://gstreamer-devel.966125.<wbr>n4.nabble.com/How-to-operate-<wbr>on-GstMapInfo-<wbr>tp4682202p4682252.html</a><br>
<div class="elided-text">Sent from the GStreamer-devel mailing list archive at Nabble.com.<br>
______________________________<wbr>_________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.<wbr>freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/gstreamer-<wbr>devel</a><br>
</div></blockquote></div><br></div></div></div>