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