Memory.get_bytes() must return an int