Advertisement
Ham62

Untitled

Jan 20th, 2017
368
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.45 KB | None | 0 0
  1.             // Generate file header
  2.             byte[] header = new byte[7];
  3.             header[0] = 0xFD;                               //Magic
  4.             header[1] = 0x9C; header[2] = 0x00;             //Segment
  5.             header[3] = 0x00; header[4] = 0x00;             //Offset
  6.             header[5] = Convert.ToByte(DataSize & 0xFF);    //Low byte of DataSize
  7.             header[6] = Convert.ToByte(DataSize >> 8);      //High byte of DataSize
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement