Root / Assembly / ARCCore / Class / PropertyStreamLine / _Member / EncodeValuePartStringToPropertyStreamFormat

ClassMemberAttribute

EncodeValuePartStringToPropertyStreamFormat

KeyValue
DescriptionConverts a single value part of a PropertyStreamLine to a format suitable for sending over a PropertyStream.
The resulting format is supposed to be quite human-readable.

Returns a string containing only characters in AllowedPropertyStreamLineValuePartChars.
Other characters are represented by '0x' plus their UTF-16 code value as four hex characters (like '0x0020' for space).
(0x itself is changed into 0xoooo before conversion takes place.)

TODO: Change into disallowed chars instead (actually only ';' (semicolon) and ' ' / ' ' (new line) is disallowed).
TODO: And as UTF-8 encoding is used throughout AgoRapide (see DefaultAgoRapideEncoding) other characters
TODO: in general can be represented.
TODO: Encoding thus becomes only: TODO: 'value.Replace("0x","0xoooo").Replace(" ", "0x000D").Replace(" ", "0x000A").Replace(";", "0x003B")TODO: that is, a simple one-liner that clients can use without needed any AgoRapide library.

Usually called from functions like EncodeValue / EncodeValues.


See also DecodeStringFromPropertyStreamFormat and EncodeKeyPartStringToPropertyStreamFormat.
MethodNameEncodeValuePartStringToPropertyStreamFormat
MethodSignatureSystem.String EncodeValuePartStringToPropertyStreamFormat(System.String)
ReflectedTypeARCCore.PropertyStreamLine

4 items


Generated 2020-10-13 11:11:05.087 UTC