Implement low-level methods of CodeWriter.