stoneharry

Untitled

Sep 21st, 2013
201
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.40 KB | None | 0 0
  1.  
  2.         internal void WriteFourCC(string fourCC)
  3.         {
  4.             byte[] arr = Encoding.ASCII.GetBytes(fourCC);
  5.             Array.Reverse(arr);
  6.  
  7.             if (arr.Length < 4)
  8.             {
  9.                 byte[] backup = arr;
  10.                 arr = new byte[arr.Length + 1];
  11.                 backup.CopyTo(arr, 0);
  12.             }
  13.  
  14.             WriteInt32(BitConverter.ToInt32(arr,0));
  15.         }
Advertisement
Add Comment
Please, Sign In to add comment