view datagear/dg/MessagePackDataGear.cs @ 2:839e355f92ed

update DataGear.cs
author riono <e165729@ie.u-ryukyu.ac.jp>
date Sun, 21 Jun 2020 15:43:48 +0900
parents
children f27db91a852e
line wrap: on
line source

using System;

namespace Christie_net.datagear.dg {
    public class MessagePackDataGear<T> : DataGear<T> {
        private byte[] messagePack = null;
        private int dataSize;
        //private byte[] messagepack =
        private 

        public MessagePackDataGear(T data) : base(data){
            GetMessagePack();
        }

        public MessagePackDataGear(Type clazz) : base(clazz) {
        }

        // public byte[] GetMessagePack() {
        //     if (messagePack != null) {
        //         return messagePack;
        //     }
        //     else {
        //         try {
        //             messagePack = 
        //         }
        //         catch (Exception e) {
        //             Console.WriteLine(e);
        //             throw;
        //         }
        //     }
        // }
    }
}