Unpack buffer.