BaseEncodingGetBytes Method (Char, Int32, Int32, Byte, Int32, Int32) | CryptSharp |
Converts characters from their text representation to a binary representation.
Namespace: CryptSharp.Utility
Assembly: CryptSharp (in CryptSharp.dll) Version: 2.1.0.0
Syntax
public int GetBytes( char[] chars, int charIndex, int charCount, byte[] bytes, int byteIndex, int byteCount )
Public Function GetBytes ( chars As Char(), charIndex As Integer, charCount As Integer, bytes As Byte(), byteIndex As Integer, byteCount As Integer ) As Integer
public: int GetBytes( array<wchar_t>^ chars, int charIndex, int charCount, array<unsigned char>^ bytes, int byteIndex, int byteCount )
member GetBytes : chars : char[] * charIndex : int * charCount : int * bytes : byte[] * byteIndex : int * byteCount : int -> int
Parameters
- chars
- Type: SystemChar
An input array of characters. - charIndex
- Type: SystemInt32
The index of the first character. - charCount
- Type: SystemInt32
The number of characters to read. - bytes
- Type: SystemByte
An output array of bytes. - byteIndex
- Type: SystemInt32
The index of the first byte. - byteCount
- Type: SystemInt32
The number of bytes to write.
Return Value
Type: Int32The number of bytes written.
See Also