# Parsing and Encoding Parse IMAP server responses and encode client commands using these streaming parsers and encode buffers. ## Overview NIOIMAPCore provides comprehensive parsing and encoding capabilities. These types handle the conversion between the IMAP wire format and strongly-typed Swift structures, including error handling and advanced features like pipelining. ## Topics ### Parsers Streaming parsers for different contexts. - ``ResponseParser`` - ``CommandParser`` - ``SynchronizingLiteralParser`` ### Encoders Buffers for encoding protocol elements back to wire format. - ``CommandEncodeBuffer`` - ``ResponseEncodeBuffer`` - ``CommandEncodingOptions`` - ``ResponseEncodingOptions`` ### Bytes Types for carrying raw message payloads without copying them. - ``IMAPBuffer`` - ``IMAPBufferList`` - ``IMAPByteStorage`` - ``ByteRegion`` - ``StableAddressByteRegion`` ### Parser input Where received bytes wait to be parsed, and how the parser reads them. - ``IMAPInputBuffer`` - ``ParserInputBuffer`` - ``ConsumableParserInputBuffer`` - ``StableRegionParserInputBuffer`` - ``ParseInput`` - ``RegionSink`` ### Encoder output Where encoded bytes go. - ``EncoderOutputBuffer`` - ``IMAPOutputBuffer`` ### Pipelining Types related to command pipelining behavior. - ``PipeliningRequirement`` - ``PipeliningBehavior`` ### Errors Parsing and encoding errors that may occur. - ``BadCommand`` - ``ParserError`` - ``TooMuchRecursion`` - ``ExceededMaximumMessageAttributesError`` - ``ExceededMaximumBodySizeError`` - ``ExceededLiteralSizeLimitError`` ### Utilities Utility types and protocol defaults. - ``ModifiedUTF7`` - ``IMAPDefaults``