align offset for every type of buffer

Signed-off-by: Christian Gmeiner <christian.gmeiner@gmail.com>