mirror of
https://github.com/IllusionMan1212/flac-odin.git
synced 2026-10-24 02:12:29 +00:00
small cleanup
This commit is contained in:
+2
-2
@@ -1,7 +1,6 @@
|
||||
//+private
|
||||
#+private
|
||||
package flac
|
||||
|
||||
import "core:bytes"
|
||||
import "core:io"
|
||||
|
||||
/* Basic byte and bit reader.
|
||||
@@ -24,6 +23,7 @@ read_slice :: #force_inline proc(r: ^Reader, buf: []u8) -> io.Error {
|
||||
}
|
||||
|
||||
read_data :: #force_inline proc(r: ^Reader, $T: typeid) -> (res: T, err: io.Error) {
|
||||
// b is safe to return here because the proc is always inlined.
|
||||
b: [size_of(T)]byte
|
||||
read_slice(r, b[:]) or_return
|
||||
|
||||
|
||||
Reference in New Issue
Block a user