StringConversionGetBytes Delegate |
A delegate for encoding a string into an array of bytes.
Namespace: Demo3D.PLCAssembly: PLC (in PLC.dll) Version: 19.00.00
Syntaxpublic delegate int GetBytes(
string s,
int charIndex,
int charCount,
byte[] bytes,
int byteIndex
)
Parameters
- s String
- The string to convert.
- charIndex Int32
- The index of the first character in the string to convert.
- charCount Int32
- The number of characters in the string to convert.
- bytes Byte
- The byte array to populate with string data.
- byteIndex Int32
- The index into the byte array.
Return Value
Int32The number of bytes written to the array.
See Also