core: add System.Binary.Base64Encode(Decode) interops

Part of #1055
This commit is contained in:
Anna Shaleva 2020-07-15 11:49:24 +03:00
parent f31ce9289d
commit 74d2f437f4
5 changed files with 72 additions and 2 deletions

View file

@ -16,3 +16,15 @@ func Serialize(item interface{}) []byte {
func Deserialize(b []byte) interface{} {
return nil
}
// Base64Encode encodes given byte slice into a base64 string and returns byte
// representation of this string. It uses `System.Binary.Base64Encode` interop.
func Base64Encode(b []byte) []byte {
return nil
}
// Base64Decode decodes given base64 string represented as a byte slice into
// byte slice. It uses `System.Binary.Base64Decode` interop.
func Base64Decode(b []byte) []byte {
return nil
}