Hunny Software Library Reference

ByteString Constructor (Byte[])

Initializes the new instance from an array of bytes.

[Visual Basic]
Overloads Public Sub New( _
   ByVal bytes As Byte() _
)
[C#]
public ByteString(
   byte[] bytes
);

Parameters

bytes
array of bytes

Remarks

The new ByteString instance owns the byte array passed as the constructor's argument. After you call this constructor, you must not change any of the values in the byte array. (This feature allows a large buffer to be imported into the MIME.NET environment without copying.)

Exceptions

Exception TypeCondition
ArgumentNullExceptionbytes is null

See Also

ByteString Class | Hunny.Base Namespace | ByteString Constructor Overload List