compiler: support System.Binary.Atoi/Itoa syscalls

This commit is contained in:
Evgenii Stratonikov 2020-11-10 12:39:52 +03:00
parent e4bf531e3e
commit d193e16662
2 changed files with 14 additions and 0 deletions

View file

@ -40,3 +40,15 @@ func Base58Encode(b []byte) string {
func Base58Decode(b []byte) []byte {
return nil
}
// Itoa converts num in a given base to string. Base should be either 10 or 16.
// It uses `System.Binary.Itoa` syscall.
func Itoa(num int, base int) string {
return ""
}
// Atoi converts string to a number in a given base. Base should be either 10 or 16.
// It uses `System.Binary.Atoi` syscall.
func Atoi(s string, base int) int {
return 0
}