Class MultipartParser
Scans a MIME multipart body for boundary delimiters and splits it into individual parts (RFC 2046 §5.1.1). Each part's raw bytes (headers + body) are returned for further parsing by MimeReader.
Inherited Members
Namespace: DRIT.Mail.Rfc.Mime.Parsing
Assembly: DRIT.Mail.dll
Syntax
public static class MultipartParser
Methods
View SourceSplit(byte[], string)
Splits the specified body bytes into individual part byte arrays using the given boundary string. The preamble (before the first boundary) and epilogue (after the closing boundary) are discarded.
Declaration
public static IReadOnlyList<byte[]> Split(byte[] body, string boundary)
Parameters
| Type | Name | Description |
|---|---|---|
| byte[] | body | Specifies the body value. |
| string | boundary | Specifies the boundary value. |
Returns
| Type | Description |
|---|---|
| IReadOnlyList<byte[]> |