changeset 3998:0dbec5edd431

added stream_read_qword by Chris Bednar
author alex
date Sat, 05 Jan 2002 19:21:06 +0000
parents fba04e21ddec
children 3c6b061ec033
files libmpdemux/stream.h
diffstat 1 files changed, 13 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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){