jan_flanders

Untitled

Dec 29th, 2012
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var tableId = input.readInt32();
  2. var bytesOutput = new haxe.io.BytesOutput();
  3. bytesOutput.bigEndian=true;
  4. bytesOutput.writeInt32(tableId);
  5. var bytesName = bytesOutput.getBytes();
  6. var tableName:String = new haxe.io.BytesInput(bytesName).readString(4);
  7.  
  8. //changed to:
  9. var tableName = input.readString(4);
  10.  
  11. //But what if I wanted both?
Advertisement
Add Comment
Please, Sign In to add comment