Пример #1
0
		public static StatefulBuffer Marshall(Transaction ta, object obj)
		{
			SerializedGraph serialized = Marshall(ta.Container(), obj);
			StatefulBuffer buffer = new StatefulBuffer(ta, serialized.Length());
			buffer.Append(serialized._bytes);
			buffer.UseSlot(serialized._id, 0, serialized.Length());
			return buffer;
		}
Пример #2
0
        public static StatefulBuffer Marshall(Transaction ta, object obj)
        {
            SerializedGraph serialized = Marshall(ta.Container(), obj);
            StatefulBuffer  buffer     = new StatefulBuffer(ta, serialized.Length());

            buffer.Append(serialized._bytes);
            buffer.UseSlot(serialized._id, 0, serialized.Length());
            return(buffer);
        }