# FixUtil Documentation

Back to summary

`import "util/base64";`

## Base64 class

### Functions

`static function encode(buf: Byte[]): String
static function encode(s: String, buf: Byte[]): String
static function encode(buf: Byte[], off: Integer, len: Integer): String
static function encode(s: String, buf: Byte[], off: Integer, len: Integer): String
`
  Encodes given byte array (or portion) into a string. Optionally you can provide a string to append to.
`static function decode(s: String): Byte[]
static function decode(out: Byte[], s: String): Byte[]
static function decode(s: String, off: Integer, len: Integer): Byte[]
static function decode(out: Byte[], s: String, off: Integer, len: Integer): Byte[]
`
  Decodes given string (or portion) into a byte array. Optionally you can provide a byte array to append to.