finish buffer and structure size and max element size; finish offset for structure