C# (CSharp) Apache.NMS.Util EndianBinaryWriter.WriteString32 - 4 Beispiele gefunden. Dies sind die am besten bewerteten C# (CSharp) Beispiele für die Apache.NMS.Util.EndianBinaryWriter.WriteString32, die aus Open Source-Projekten extrahiert wurden. Sie können Beispiele bewerten, um die Qualität der Beispiele zu verbessern.
Method WriteString32, writes a string to the output using the Openwire standard modified UTF-8 encoding which an int value written first to indicate the length of the encoded data, the int is read as an signed value so the max amount of data this method can write is 2^31 encoded bytes. In the case of a null value being passed this method writes a -1 to the stream to indicate that the string is null. Because modified UTF-8 encding can result in a number of bytes greater that the size of the String this method must first check that the encoding proces will not result in a value that cannot be written becuase it is greater than the max value of an int.