# Pastebin bVIz98KS def cast_from(ctype, buff, position): size = ffi.sizeof(ctype) return ffi.cast(ctype + "*", buff[position:position + size])