Mercurial Hosting > luan
comparison src/luan/modules/Binary.luan @ 1470:580ee513a4b7
minor
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Tue, 14 Apr 2020 17:12:06 -0600 |
parents | 8d95711f6615 |
children | 60f6741f000a |
comparison
equal
deleted
inserted
replaced
1469:21f5edab1fbf | 1470:580ee513a4b7 |
---|---|
1 require "java" | 1 require "java" |
2 local BinaryLuan = require "java:luan.modules.BinaryLuan" | 2 local BinaryLuan = require "java:luan.modules.BinaryLuan" |
3 local Base64 = require "java:java.util.Base64" | |
3 | 4 |
4 | 5 |
5 local Binary = {} | 6 local Binary = {} |
6 | 7 |
8 Binary.base64_decode = Base64.getDecoder().decode | |
9 Binary.base64_encode = Base64.getEncoder().encode | |
7 Binary.binary = BinaryLuan.binary | 10 Binary.binary = BinaryLuan.binary |
8 Binary.byte = BinaryLuan.byte_ | 11 Binary.byte = BinaryLuan.byte_ |
9 Binary.to_string = BinaryLuan.to_string | 12 Binary.to_string = BinaryLuan.to_string |
10 | 13 |
11 return Binary | 14 return Binary |