コード例 #1
0
 private MsgPackToken(ulong?value, MsgPackContext context = null)
 {
     _context = context;
     RawBytes = MsgPackSerializer.Serialize(value, _context ?? DefaultContext);
 }
コード例 #2
0
 public MsgPackToken(MsgPackToken[] value, MsgPackContext context = null)
 {
     _context = context;
     RawBytes = MsgPackSerializer.Serialize(value, _context ?? DefaultContext);
 }
コード例 #3
0
 public MsgPackToken(Dictionary <MsgPackToken, MsgPackToken> value, MsgPackContext context = null)
 {
     _context = context;
     RawBytes = MsgPackSerializer.Serialize(value, _context ?? DefaultContext);
 }
コード例 #4
0
 private T CastTokenToValue <T>()
 {
     return(MsgPackSerializer.Deserialize <T>(RawBytes, _context ?? DefaultContext));
 }