OCLOperators GetBytes
Created by Stephanie on 2025-01-08 · Last edited by Vale.buyondo on 2026-01-27.
The GetBytes operation is commonly used to convert a string into a byte array using a specific encoding. In OCL and related .NET contexts, you can use the standard .NET Encoding static class for this purpose.
Syntax
Encoding.<EncodingName>.GetBytes(<StringExpression>)
This is useful when you need to process or transmit data in binary formats, such as when preparing data for storage, encoding, or network transmission. The specific encoding used (such as ASCII, UTF-8, or ISO-8859-1) will determine how the characters are transformed into bytes
