public static void writeTLObject(TLObject v, OutputStream stream) { v.serialize(stream); }
/** * 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; } }