use nbytes for struct size.