Hunny Software Library Reference

FieldBody.Fold Method 

Performs line folding on its argument.

[Visual Basic]
Public Shared Function Fold( _
   ByVal unfolded As ByteString, _
   ByVal offset As Integer _
) As ByteString
[C#]
public static ByteString Fold(
   ByteString unfolded,
   int offset
);

Parameters

unfolded
the unfolded string
offset
the amount of space to reserve for the header field name

Return Value

The folded string.

Remarks

The parameter offset indicates how much space should be reserved in the first line for the header field name.

See Also

FieldBody Class | Hunny.Mime Namespace