/// <exception cref="System.IO.IOException"></exception> public void Write(IObjectDataOutput output, IIdentifiedDataSerializable obj) { output.Write(true); // identified flag output.Write(obj.FactoryId); output.Write(obj.ClassId); obj.WriteData(output); }
/// <exception cref="System.IO.IOException" /> public virtual void WriteData(IObjectDataOutput @out) { @out.Write(name); @out.WriteObject(address); @out.Write(age); @out.Write(height); @out.Write(weight); }
public void WriteData(IObjectDataOutput output) { if (output == null) { throw new ArgumentNullException(nameof(output)); } output.Write(_attributeName); output.Write(_regex); }
public void WriteData(IObjectDataOutput output) { if (output == null) { throw new ArgumentNullException(nameof(output)); } output.Write((int)Type); output.Write(Identifier); }
public void WriteData(IObjectDataOutput output) { output.Write(Bool); output.WriteArray(BoolArray); output.Write(Byte); output.WriteArray(ByteArray); output.Write(Char); output.WriteArray(CharArray); output.Write(Short); output.WriteArray(ShortArray); output.Write(Int); output.WriteArray(IntArray); output.Write(Long); output.WriteArray(LongArray); output.Write(Float); output.WriteArray(FloatArray); output.Write(Double); output.WriteArray(DoubleArray); output.WriteObject(Serializable); //output.WriteObject(SerializableArray); //output.WriteObject(Portable); //output.WriteObject(PortableArray); output.WriteAsCharArray(Chars); output.Write(String); output.WriteArray(StringArray); output.WriteObject(DateTime); }
public void WriteData(IObjectDataOutput output) { if (output == null) throw new ArgumentNullException(nameof(output)); output.Write(_attributeName); output.Write(_values.Length); foreach (var value in _values) { output.WriteObject(value); } }
public void Write(IObjectDataOutput output, object obj) { if (obj is IList <string> ) { IList <string> list = (IList <string>)obj; output.Write(list.Count); foreach (var o in list) { output.Write(o); } } }
public void WriteData(IObjectDataOutput output) { if (output == null) { throw new ArgumentNullException(nameof(output)); } output.Write(_attributeName); output.WriteObject(_value); output.Write(_equal); output.Write(_less); }
public void WriteData(IObjectDataOutput output) { output.Write(_runnerCount); output.Write(_raceCount); for (var i = 0; i < _runnerCount; i++) { for (var j = 0; j < _raceCount; j++) { _runnerInfos[i, j].WriteData(output); } } }
/// <exception cref="System.IO.IOException"></exception> public void Write(IObjectDataOutput output, IPortable p) { if (!(output is IBufferObjectDataOutput)) { throw new ArgumentException("ObjectDataOutput must be instance of BufferObjectDataOutput!"); } if (p.ClassId == 0) { throw new ArgumentException("Portable class id cannot be zero!"); } output.Write(p.FactoryId); output.Write(p.ClassId); WriteInternal((IBufferObjectDataOutput)output, p); }
public void Write(IObjectDataOutput output, CustomSerializableType t) { var array = Encoding.UTF8.GetBytes(t.Value); output.Write(array.Length); output.WriteBytes(array); }
public override void Write(IObjectDataOutput output, object[] obj) { output.Write(obj.Length); foreach (var t in obj) { output.WriteObject(t); } }
/// <inheritdoc /> public void WriteData(IObjectDataOutput output) { if (output == null) { throw new ArgumentNullException(nameof(output)); } output.Write(AttributePath); }
public void WriteData(IObjectDataOutput output) { if (output == null) { throw new ArgumentNullException(nameof(output)); } output.Write(_className); }
public override void Write(IObjectDataOutput output, LinkedList <T> obj) { var size = obj == null ? ArraySerializer.NullArrayLength : obj.Count; output.Write(size); foreach (var o in obj) { output.WriteObject(o); } }
public void WriteData(IObjectDataOutput output) { if (output == null) { throw new ArgumentNullException(nameof(output)); } output.WriteObject(Predicate); output.WriteObject(Comparer); output.Write(Page); output.Write(PageSize); output.Write(IterationType?.ToString().ToUpper(CultureInfo.InvariantCulture)); output.Write(AnchorList.Count); foreach (var(key, anchorEntry) in AnchorList) { output.Write(key); output.WriteObject(anchorEntry.Key); output.WriteObject(anchorEntry.Value); } }
public void WriteData(IObjectDataOutput output) { if (output == null) { throw new ArgumentNullException(nameof(output)); } output.Write(_predicates.Length); foreach (var predicate in _predicates) { output.WriteObject(predicate); } }
public void Write(IObjectDataOutput output, CollectionType obj) { var size = obj.Count; output.Write(size); if (size > 0) { foreach (var o in obj) { output.WriteObject(o); } } }
public void Write(IObjectDataOutput output, DType obj) { var size = obj.Count; output.Write(size); if (size > 0) { foreach (var kvp in obj) { output.WriteObject(kvp.Key); output.WriteObject(kvp.Value); } } }
public void Write(IObjectDataOutput output, CustomSerializableType t) { byte[] array; var bf = new BinaryFormatter(); using (var ms = new MemoryStream()) { bf.Serialize(ms, t); array = ms.ToArray(); } output.Write(array.Length); output.WriteBytes(array); }
public void WriteData(IObjectDataOutput output) { output.Write(i); output.Write(c); }
/// <inheritdoc /> protected override void WriteAggregatorData(IObjectDataOutput output) { output.Write(0L); // member side field not used on client output.Write(0L); // member side field not used on client }
public void WriteData(IObjectDataOutput output) { output.Write(_value); }
/// <exception cref="System.IO.IOException"></exception> public override void Write(IObjectDataOutput output, string obj) { output.Write(obj); }
public void WriteData(IObjectDataOutput output) { output.Write(Id); output.Write(Name); }
public void WriteData(IObjectDataOutput output) { output.WriteInt(data.Length); output.Write(data); }
public virtual void WriteData(IObjectDataOutput @out) { @out.Write(street); @out.Write(no); }
/// <exception cref="System.IO.IOException"></exception> public override void Write(IObjectDataOutput output, bool obj) { output.Write((obj ? 1 : 0)); }
/// <exception cref="System.IO.IOException"></exception> public override void Write(IObjectDataOutput output, float obj) { output.Write(obj); }
public override void Write(IObjectDataOutput output, DateTime obj) { output.Write(ToEpochDateTime(obj)); }