http://qs1969.pair.com?node_id=1180090


in reply to Is this a sane/safe way to pass an aref into a C function?

Hm. A sequence of bytes could be an array in perl but in C it is generally known as a string. :^)

So you could just pass a string and read it with SvPV. Although I suppose it depends on your concept of the channel. If the bytes are going to have an individual meaning, like a value sampling, then perhaps the array model is appropriate.