Set a new maximum number of bytes that can be allocated when decoding data. Once called, the limit cannot be changed.
NOTE This function must be called before decoding any data. The
to set the limit either when calling this method, or when decoding for
the first time.