Example #1
0
 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);
 }
Example #2
0
 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);
 }
Example #3
0
 public IStringStreamWrapper(TStringStream stream)
     : base(stream, System.Text.Encoding.Default)
 {
 }