Implement Base64.encode; shorten rank array; remove unnecessary byte in buffer.
Implement Base64.encode; shorten rank array; remove unnecessary byte in buffer.

oftn/common,oftn/common,oftn/common,oftn/common,oftn/common,oftn/common