Mercurial > hg > Database > Christie-sharp
diff datagear/dg/MessagePackDataGear.cs @ 23:46cfeb0609c5
Add TcpConnections
author | riono <e165729@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 15 Dec 2020 22:11:40 +0900 |
parents | e6f5b7d14dd1 |
children | 1236da135f79 |
line wrap: on
line diff
--- a/datagear/dg/MessagePackDataGear.cs Thu Dec 03 19:53:18 2020 +0900 +++ b/datagear/dg/MessagePackDataGear.cs Tue Dec 15 22:11:40 2020 +0900 @@ -13,6 +13,10 @@ public MessagePackDataGear(Type clazz) : base(clazz) { } + public MessagePackDataGear(byte[] messagePack, Type clazz) : base(clazz) { + this.messagePack = messagePack; + } + public byte[] GetMessagePack() { if (messagePack != null) return messagePack;