# HG changeset patch # User alex # Date 1010258466 0 # Node ID 0dbec5edd431163492eb10c11d98ae77edca1770 # Parent fba04e21ddec679a4afaae4778323649dd1687e1 added stream_read_qword by Chris Bednar diff -r fba04e21ddec -r 0dbec5edd431 libmpdemux/stream.h --- a/libmpdemux/stream.h Sat Jan 05 18:27:44 2002 +0000 +++ b/libmpdemux/stream.h Sat Jan 05 19:21:06 2002 +0000 @@ -96,6 +96,19 @@ return y; } +inline static uint64_t stream_read_qword(stream_t *s){ + uint64_t y; + y = stream_read_char(s); + y=(y<<8)|stream_read_char(s); + y=(y<<8)|stream_read_char(s); + y=(y<<8)|stream_read_char(s); + y=(y<<8)|stream_read_char(s); + y=(y<<8)|stream_read_char(s); + y=(y<<8)|stream_read_char(s); + y=(y<<8)|stream_read_char(s); + return y; +} + inline static int stream_read(stream_t *s,char* mem,int total){ int len=total; while(len>0){