ReadInt









How do I use Read Int
Below are practical examples compiled from projects for learning and reference purposes

Featured Snippets


File name: ReorderableListResources.cs Copy
202         private static void GetImageSize( byte[] imageData, out int width, out int height )
203         {
204             width = ReadInt( imageData, 3 + 15 );
205             height = ReadInt( imageData, 3 + 15 + 2 + 2 );
206         }
File name: ReorderableListResources.cs Copy
208         private static int ReadInt( byte[] imageData, int offset )
209         {
210             return ( imageData[ offset ] << 8 ) | imageData[ offset + 1 ];
211         }

ReadInt 122 lượt xem

Gõ tìm kiếm nhanh...