public static void SerializeTo(ushort opcode, object obj, MemoryStream stream) { if (opcode >= 20000) { ProtobufHelper.ToStream(obj, stream); return; } MongoHelper.ToBson(obj, stream); }
public byte[] SerializeTo(object obj) { return(MongoHelper.ToBson(obj)); }
public void SerializeTo(object obj, MemoryStream stream) { MongoHelper.ToBson(obj, stream); }