The one in NSData is quite strict. This is a relaxed variant that allows bad padding and URL-safe encoding. The test-buffer.js is quite annoying in the data it feeds to that one.

It should be an NSData category though…

On 17 Mar 2014, at 01:54, Sam Rijs <notifications@github.com> wrote:

> In Nodelike/NLBuffer.m:
> 
> >  } NLEncoding;
> >  
> > +static NSData * base64Decode(NSString* str) {
> 
> What does this function do that NSData#initWithBase64EncodedString:options: couldn't?
> 
> —
> Reply to this email directly or view it on GitHub.
>