MCPcopy Create free account
hub / github.com/zhuker/lamejs / read_buf_byte

Method read_buf_byte

src/main/java/mpg/Interface.java:149–172  ·  view source on GitHub ↗
(mpstr_tag mp)

Source from the content-addressed store, hash-verified

147 }
148
149 int
150 read_buf_byte(mpstr_tag mp)
151 {
152 int b;
153
154 int pos;
155
156
157 pos = mp.tail.pos;
158 while (pos >= mp.tail.size) {
159 remove_buf(mp);
160 if (null==mp.tail) {
161 throw new RuntimeException("hip: Fatal error! tried to read past mp buffer");
162 }
163 pos = mp.tail.pos;
164 }
165
166 b = mp.tail.pnt[pos] & 0xff;
167 mp.bsize--;
168 mp.tail.pos++;
169
170
171 return b;
172 }
173
174 void
175 read_head(mpstr_tag mp)

Callers 2

read_headMethod · 0.95
decodeMP3_clipchoiceMethod · 0.95

Calls 1

remove_bufMethod · 0.95

Tested by

no test coverage detected