Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- internal void WriteFourCC(string fourCC)
- {
- byte[] arr = Encoding.ASCII.GetBytes(fourCC);
- Array.Reverse(arr);
- if (arr.Length < 4)
- {
- byte[] backup = arr;
- arr = new byte[arr.Length + 1];
- backup.CopyTo(arr, 0);
- }
- WriteInt32(BitConverter.ToInt32(arr,0));
- }
Advertisement
Add Comment
Please, Sign In to add comment