@@ -5946,18 +5946,6 @@ public static void Pause_stub(this Telegram.Native.Media.AsyncMediaPlayer sender
59465946 throw new RuntimeException ( ex ) ;
59475947 }
59485948 }
5949- public static void Play_stub ( this Telegram . Native . Media . AsyncMediaPlayer sender , System . Uri uri )
5950- {
5951- try
5952- {
5953- sender . Play ( uri ) ;
5954- }
5955- catch ( Exception ex )
5956- {
5957- Logger . Error ( Environment . StackTrace , ex ) ;
5958- throw new RuntimeException ( ex ) ;
5959- }
5960- }
59615949 public static void Play_stub ( this Telegram . Native . Media . AsyncMediaPlayer sender , Telegram . Native . Media . IAsyncMediaPlayerSource stream )
59625950 {
59635951 try
@@ -6435,23 +6423,23 @@ public static void Copy_stub(Windows.Storage.Streams.IBuffer source, Windows.Sto
64356423 throw new RuntimeException ( ex ) ;
64366424 }
64376425 }
6438- public static Windows . Storage . Streams . IBuffer Create_stub ( uint size )
6426+ public static Windows . Storage . Streams . IBuffer Create_stub ( byte [ ] data )
64396427 {
64406428 try
64416429 {
6442- return Telegram . Native . BufferSurface . Create ( size ) ;
6430+ return Telegram . Native . BufferSurface . Create ( data ) ;
64436431 }
64446432 catch ( Exception ex )
64456433 {
64466434 Logger . Error ( Environment . StackTrace , ex ) ;
64476435 throw new RuntimeException ( ex ) ;
64486436 }
64496437 }
6450- public static Windows . Storage . Streams . IBuffer Create_stub ( byte [ ] data )
6438+ public static Windows . Storage . Streams . IBuffer Create_stub ( uint size )
64516439 {
64526440 try
64536441 {
6454- return Telegram . Native . BufferSurface . Create ( data ) ;
6442+ return Telegram . Native . BufferSurface . Create ( size ) ;
64556443 }
64566444 catch ( Exception ex )
64576445 {
@@ -6523,33 +6511,6 @@ public static void Seek_stub(this Telegram.Native.CachedVideoAnimation sender, d
65236511 }
65246512 }
65256513}
6526- public static class FileStreamFromApp_stub
6527- {
6528- public static int Read_stub ( this Telegram . Native . FileStreamFromApp sender , Windows . Storage . Streams . IBuffer buffer , uint length )
6529- {
6530- try
6531- {
6532- return sender . Read ( buffer , length ) ;
6533- }
6534- catch ( Exception ex )
6535- {
6536- Logger . Error ( Environment . StackTrace , ex ) ;
6537- throw new RuntimeException ( ex ) ;
6538- }
6539- }
6540- public static bool Seek_stub ( this Telegram . Native . FileStreamFromApp sender , long offset )
6541- {
6542- try
6543- {
6544- return sender . Seek ( offset ) ;
6545- }
6546- catch ( Exception ex )
6547- {
6548- Logger . Error ( Environment . StackTrace , ex ) ;
6549- throw new RuntimeException ( ex ) ;
6550- }
6551- }
6552- }
65536514public static class LanguageIdentification_stub
65546515{
65556516 public static string IdentifyLanguage_stub ( string text )
@@ -8532,18 +8493,6 @@ public static Windows.UI.Text.ITextCharacterFormat GetDefaultCharacterFormat_stu
85328493 throw new RuntimeException ( ex ) ;
85338494 }
85348495 }
8535- public static Windows . UI . Text . ITextParagraphFormat GetDefaultParagraphFormat_stub ( this Windows . UI . Text . ITextDocument sender )
8536- {
8537- try
8538- {
8539- return sender . GetDefaultParagraphFormat ( ) ;
8540- }
8541- catch ( Exception ex )
8542- {
8543- Logger . Error ( Environment . StackTrace , ex ) ;
8544- throw new RuntimeException ( ex ) ;
8545- }
8546- }
85478496 public static Windows . UI . Text . ITextRange GetRange_stub ( this Windows . UI . Text . ITextDocument sender , int startPosition , int endPosition )
85488497 {
85498498 try
@@ -8742,6 +8691,18 @@ public static Windows.UI.Text.ITextRange GetClone_stub(this Windows.UI.Text.ITex
87428691 throw new RuntimeException ( ex ) ;
87438692 }
87448693 }
8694+ public static void GetPoint_stub ( this Windows . UI . Text . ITextRange sender , Windows . UI . Text . HorizontalCharacterAlignment horizontalAlign , Windows . UI . Text . VerticalCharacterAlignment verticalAlign , Windows . UI . Text . PointOptions options , out Windows . Foundation . Point point )
8695+ {
8696+ try
8697+ {
8698+ sender . GetPoint ( horizontalAlign , verticalAlign , options , out point ) ;
8699+ }
8700+ catch ( Exception ex )
8701+ {
8702+ Logger . Error ( Environment . StackTrace , ex ) ;
8703+ throw new RuntimeException ( ex ) ;
8704+ }
8705+ }
87458706 public static void GetRect_stub ( this Windows . UI . Text . ITextRange sender , Windows . UI . Text . PointOptions options , out Windows . Foundation . Rect rect , out int hit )
87468707 {
87478708 try
0 commit comments