예제 #1
0
파일: Utils.cs 프로젝트: stjordanis/Tools-2
        public static byte[] pack(IPackable packableEx)
        {
            ByteBuf buffer = new ByteBuf();

            packableEx.marshal(buffer);
            return(buffer.asBytes());
        }
예제 #2
0
파일: Utils.cs 프로젝트: stjordanis/Tools-2
        public static byte[] pack(PrivilegeMessage packableEx)
        {
            ByteBuf buffer = new ByteBuf();

            packableEx.marshal(buffer);
            return(buffer.asBytes());
        }