Skip to content

Instantly share code, notes, and snippets.

Avatar

Shaun Mitchell shaunus84

View GitHub Profile
@shaunus84
shaunus84 / Base64.as
Created Jul 31, 2012
TMX Loader Starling Extension
View Base64.as
/*
* Copyright (C) 2012 Jean-Philippe Auclair
* Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
* Base64 library for ActionScript 3.0.
* By: Jean-Philippe Auclair : http://jpauclair.net
* Based on article: http://jpauclair.net/2010/01/09/base64-optimized-as3-lib/
* Benchmark:
* This version: encode: 260ms decode: 255ms
* Blog version: encode: 322ms decode: 694ms
* as3Crypto encode: 6728ms decode: 4098ms