The commonest "gap" inside of a cylinder happens in which the top of your cylinder (Keeping the valves and spark plug and often called the cylinder head) attaches for the cylinder itself. The combination is compressed over the compression stroke, ignited in the electric power stroke, plus the exhaust gases https://www.yantracart.com/industrial/generators/