Advertisement
Guest User

Untitled

a guest
Jun 25th, 2016
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. byte[] objectCount = new byte[12];
  2. inputa.Read(objectCount, 0, objectCount.Length);
  3. byte[] useless = new byte[5];
  4. inputa.Read(useless, 0, useless.Length);
  5. byte[] exportCountA = new byte[2];
  6. inputa.Read(exportCountA, 0, exportCountA.Length);
  7. ushort exportCount = BitConverter.ToUInt16(exportCountA, 0);
  8. byte[] exportIdsA = new byte[2 * exportCount];
  9. inputa.Read(exportIdsA, 0, exportIdsA.Length);
  10. List < Tuple < ushort, String >> exportNameL = new List < Tuple < ushort, String >> ();
  11. for(int i = 0; i < exportCount; i++) {
  12. byte exportNameLength = (byte) inputa.ReadByte();
  13. byte[] exportNameA = new byte[exportNameLength];
  14. inputa.Read(exportNameA, 0, exportNameA.Length);
  15. String exportName = Encoding.UTF8.GetString(exportNameA);
  16. Console.WriteLine("exportName: " + exportName);
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement