base64 property

String base64

Encodes the buffers readable bytes using base64 while not updating the ByteBuf.readerIndex or resetting user markers


Example:

SGVsbG8gV29ybGQ=

Implementation

String get base64 => base64Encode(peekAvailableBytes());