inline get_bytes, 7% speedup