Adds a base64 encode wrapper, and a way to encode NBT to Base64

This commit is contained in:
zontreck 2024-05-16 13:22:05 -07:00
parent 7c194f2dd4
commit 1024c4dbd7
3 changed files with 32 additions and 1 deletions

12
lib/utils/Converter.dart Normal file
View file

@ -0,0 +1,12 @@
import 'dart:convert';
import 'dart:typed_data';
class base64Encoder {
static String encode(List<int> value) {
return base64.encode(value);
}
static Uint8List decode(String value) {
return base64.decode(value);
}
}