ConfigurationCell3EncodeLengthPrefixedString(String, Byte, Int32) Method

Encodes a length-prefixed string. Length size is one byte per IEEE C37.118-2011 specification.

Definition

Namespace: Gemstone.PhasorProtocols.IEEEC37_118
Assembly: Gemstone.PhasorProtocols (in Gemstone.PhasorProtocols.dll) Version: 1.0.189 -- Release Build+f18be3298deb6f1d6a1aa9db365605e74583d8b3
public static int EncodeLengthPrefixedString(
	string value,
	byte[] buffer,
	int offset
)

Parameters

value  String
String value to encode using UTF-8 encoding..
buffer  Byte
Target buffer.
offset  Int32
Target buffer offset.

Return Value

Int32
Total number of encoded bytes copied into buffer.

See Also