Rewrite ivideon source

This commit is contained in:
Alex X
2025-04-04 19:55:19 +03:00
parent d99bf122ea
commit be3a1c5b5f
7 changed files with 486 additions and 441 deletions
+6
View File
@@ -89,6 +89,12 @@ func (r *Reader) ReadBits64(n byte) (res uint64) {
return
}
func (r *Reader) ReadFloat32() float64 {
i := r.ReadUint16()
f := r.ReadUint16()
return float64(i) + float64(f)/65536
}
func (r *Reader) ReadBytes(n int) (b []byte) {
if r.bits == 0 {
if r.pos+n > len(r.buf) {