[GEM-dev] pix_buffer_read alters pix_buffer contents?

Mathieu Bouchard matju at artengine.ca
Thu Aug 16 23:52:38 CEST 2007


On Thu, 16 Aug 2007, chris clepper wrote:
> On 8/15/07, B. Bogart <ben at ekran.org> wrote:
>> I tried that and separator, still the problem persists.
>> Thanks for the try! ;)
> pix_separator after pix_buffer_read will work has done so for me in the
> past.  pix_buffer read does not create a new copy of the buffer contents to
> send along the chain, so any object that alters a pix_ stream will alter
> buffer contents.

If [pix_separator] does not work, it is because it has to be used in 
combination with [t a a] so that the separator is applied in the right 
order. Using two [pix_separator] and no ordering will also work, but 
perhaps will also cause an unnecessary copy (?).

(does that help Ben?)

  _ _ __ ___ _____ ________ _____________ _____________________ ...
| Mathieu Bouchard - tél:+1.514.383.3801, Montréal QC Canada


More information about the GEM-dev mailing list