PdfEncodingExtensions Class
A type that extends IPdfEncoding interface.
- Inheritance:
- PdfEncodingExtensions
Methods
GetBytes(IPdfEncoding, String)
Encodes all the characters in the specified string into a sequence of bytes.
public static byte[] GetBytes(this IPdfEncoding encoding, string s)
<ExtensionAttribute>
Public Shared Function GetBytes(encoding As IPdfEncoding, s As String) As Byte()
Parameters
encoding
- IPdfEncoding
The encoding.
The string containing the characters to encode.
Returns
- Byte[]
A byte array containing the results of encoding the specified set of characters.
Exceptions
encoding
or s
is null.
GetString(IPdfEncoding, Byte[])
Decodes a sequence of bytes from the specified byte array into a string.
public static string GetString(this IPdfEncoding encoding, byte[] bytes)
<ExtensionAttribute>
Public Shared Function GetString(encoding As IPdfEncoding, bytes As Byte()) As String
Parameters
encoding
- IPdfEncoding
The encoding.
bytes
- Byte[]
The byte array containing the sequence of bytes to decode.
Returns
A string that contains the results of decoding the specified sequence of bytes.
Exceptions
encoding
or bytes
is null.