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