Ejemplo n.º 1
0
 public static void writeTLObject(TLObject v, OutputStream stream)
 {
     v.serialize(stream);
 }
Ejemplo n.º 2
0
 /**
  * Writing tl-object to stream
  *
  * @param v      tl-object
  * @param stream destination stream
  * @throws IOException
  */
 public static void writeTLObject(TLObject v, /*OutputStream*/ StreamWriter stream)
 {
     try {
         v.serialize(stream);
     } catch (IOException e) {
         System.Diagnostics.Debug.WriteLine(e.StackTrace);
         throw e;
     }
 }