bufferSize and padding