Added initializer

This commit is contained in:
Robert Osfield 2016-06-22 11:48:30 +01:00
parent 97acecdf66
commit acaf9fd720
2 changed files with 6 additions and 6 deletions

View File

@ -52,6 +52,12 @@ namespace osgDB
char plainchar;
} base64_decodestate;
inline void base64_init_decodestate(base64_decodestate* state_in)
{
state_in->step = step_a;
state_in->plainchar = 0;
}
class OSGDB_EXPORT Base64encoder
{
public:

View File

@ -35,12 +35,6 @@ namespace osgDB
return decoding[(int)value_in];
}
void base64_init_decodestate(base64_decodestate* state_in)
{
state_in->step = step_a;
state_in->plainchar = 0;
}
int base64_decode_block(const char* code_in, const int length_in, char* plaintext_out, base64_decodestate* state_in)
{
const char* codechar = code_in;