buffer: Calculate the offsets in set_size only after resizing the buffer
buffer: Calculate the offsets in set_size only after resizing the buffer

adtechlabs/libtasks,adtechlabs/libtasks,adtechlabs/libtasks,adtechlabs/libtasks