CSharp like Binary Reader and Writer class for Actionscript