Click or drag to resize

PdfEncodingGetBytes 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: 10.0.35.1002
Syntax
public virtual 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.

Implements

IPdfEncodingGetBytes(String, Byte, Int32)
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