Managing a file buffer

Marc 'BlackJack' Rintsch bj_666 at gmx.net
Mon Apr 9 10:30:10 EDT 2007


In <mailman.6212.1176124581.32031.python-list at python.org>, David Johnson
wrote:

> What I'd like to do is have a buffer, say 5MB in size, which I can point 
> GStreamer at. So every time I write 60K to the tail of the file, I'd need to 
> remove 60K from the head of the file.

You can't remove data from the head of a file.  At least not without
moving all following data "down", but then the file pointer within
`gstreamer` is wrong.  Can't `gstreamer` be fed through a pipe?

Ciao,
	Marc 'BlackJack' Rintsch



More information about the Python-list mailing list