Click or drag to resize
WriteBufferWriteAsUtf8 Method
Writes the UTF-8 representation of value to the buffer.

Namespace: Lawo.IO
Assembly: Lawo (in Lawo.dll) Version: 1.4.1707.27006
Syntax
C#
public void WriteAsUtf8(
	string value,
	int byteCount
)

Parameters

value
Type: SystemString
The string to write to the buffer.
byteCount
Type: SystemInt32
The number of bytes the UTF-8 representation will need. Pass the return value of GetByteCount(String).
Exceptions
ExceptionCondition
ArgumentExceptionbyteCount is less than the return value of GetByteCount(String) called with value as argument.
ArgumentNullExceptionvalue equals null.
InvalidOperationExceptionThe WriteBuffer object was created by calling WriteBuffer(WriteAsyncCallback, Int32).
Remarks
If the remaining space in the buffer is too small to hold all bytes, the buffer is first flushed. If the buffer can still not hold all bytes, it is enlarged so that it can hold at least byteCount bytes.
See Also