comparison core/src/luan/modules/BinaryLuan.java @ 360:cbb94a7c7a9e

allow mail attachments; add String.to_binary and Binary.to_string;
author Franklin Schmidt <fschmidt@gmail.com>
date Wed, 15 Apr 2015 11:32:30 -0600
parents 5e7450ac27f2
children d55e873e1f0d
comparison
equal deleted inserted replaced
359:8848edb0e6bf 360:cbb94a7c7a9e
60 60
61 @LuanMethod public static byte[] binary(byte... bytes) { 61 @LuanMethod public static byte[] binary(byte... bytes) {
62 return bytes; 62 return bytes;
63 } 63 }
64 64
65 public static String to_string(byte[] binary) {
66 return new String(binary);
67 }
68
65 } 69 }