public static byte[] ObjectBinaryToText(byte[] binData)
 {
     TStringStream binStream = new TStringStream(_encoding.GetString(binData));
     TStringStream textStream = new TStringStream(string.Empty, _encoding);
     Classes.ObjectBinaryToText(binStream, textStream);
     return _encoding.GetBytes(textStream.DataString);
 }
 public static byte[] ObjectTextToBinary(byte[] textData)
 {
     TStringStream textStream = new TStringStream(_encoding.GetString(textData));
     TStringStream binStream = new TStringStream(string.Empty, _encoding);
     Classes.ObjectTextToBinary(textStream, binStream);
     return _encoding.GetBytes(binStream.DataString);
 }
Beispiel #3
0
 public IStringStreamWrapper(TStringStream stream)
     : base(stream, System.Text.Encoding.Default)
 {
 }