impl offsetof and check iovec