public static SpTypeManager Import(string proto) { SpTypeManager instance = new SpTypeManager(); new SpProtoParser(instance).Parse(proto); return(instance); }
public static SpTypeManager Import(Stream stream) { SpTypeManager instance = new SpTypeManager(); new SpProtoParser(instance).Parse(stream); return(instance); }
public static SpRpc Create(SpTypeManager tm, string package) { if (tm == null) { return(null); } SpType t = tm.GetType(package); if (t == null) { return(null); } SpRpc rpc = new SpRpc(tm, t); return(rpc); }
public void Attach(SpTypeManager tm) { mAttachTypeManager = tm; }
public void Attach(string proto) { Attach(SpTypeManager.Import(proto)); }
public SpRpc(SpTypeManager tm, SpType t) { mHostTypeManager = tm; mHeaderType = t; }
public static SpRpc Create(string proto, string package) { return(Create(SpTypeManager.Import(proto), package)); }
public SpProtoParser(SpTypeManager m) { mTypeManager = m; mTypes = new List <SpType>(); }
public SpCodec(SpTypeManager m) { mTypeManager = m; }