Click or drag to resize

IPdfEncodingGetBytes Method

Encodes a set of characters from the specified string into the specified byte array.

Namespace:  GemBox.Pdf.Text
Assembly:  GemBox.Pdf (in GemBox.Pdf.dll) Version: 13.0.35.1000
Syntax
int GetBytes(
	string s,
	byte[] bytes,
	int byteIndex
)

Parameters

s
Type: SystemString
The string containing the set of characters to encode.
bytes
Type: SystemByte
The byte array to contain the resulting sequence of bytes.
byteIndex
Type: SystemInt32
Index of the byte.

Return Value

Type: Int32
The actual number of bytes written into bytes.
Exceptions
ExceptionCondition
ArgumentNullExceptions is or bytes is .
ArgumentOutOfRangeExceptionbyteIndex is not a valid index in bytes.
ArgumentExceptionbytes does not have enough capacity from byteIndex to the end of the array to accommodate the resulting bytes.
See Also