public override void InternalToBinary(IBinaryRawWriter writer) { base.InternalToBinary(writer); VersionSerializationHelper.EmitVersionByte(writer, VERSION_NUMBER); writer.WriteGuid(SiteModelID); writer.WriteInt((int)OTGCellBottomLeftX); writer.WriteInt((int)OTGCellBottomLeftY); writer.WriteDouble(CellSize); writer.WriteByte((byte)SurveyedSurfacePatchType); writer.WriteBoolean(ProcessingMap != null); if (ProcessingMap != null) { writer.WriteByteArray(ProcessingMap.ToBytes()); } writer.WriteBoolean(IncludedSurveyedSurfaces != null); if (IncludedSurveyedSurfaces != null) { var count = IncludedSurveyedSurfaces.Length; writer.WriteInt(count); for (int i = 0; i < count; i++) { writer.WriteGuid(IncludedSurveyedSurfaces[i]); } } }
public void ToBinary(IBinaryRawWriter writer) { VersionSerializationHelper.EmitVersionByte(writer, VERSION_NUMBER); writer.WriteGuid(ProjectUID); writer.WriteGuid(AssetUID); writer.WriteString(FileName); }
public override void InternalToBinary(IBinaryRawWriter writer) { VersionSerializationHelper.EmitVersionByte(writer, VERSION_NUMBER); writer.WriteGuid(OriginatingIgniteNodeId); writer.WriteGuid(ExternalDescriptor); writer.WriteLong(RequestEmissionDateUtc.ToBinary()); }
public void ToBinary(IBinaryRawWriter writer) { VersionSerializationHelper.EmitVersionByte(writer, VERSION_NUMBER); writer.WriteGuid(ProjectUID); writer.WriteGuid(AssetUID); writer.WriteInt((int)StreamType); }
public override void InternalToBinary(IBinaryRawWriter writer) { base.InternalToBinary(writer); VersionSerializationHelper.EmitVersionByte(writer, VERSION_NUMBER); writer.WriteGuid(ProjectID); writer.WriteGuid(DesignID); }
public override void InternalToBinary(IBinaryRawWriter writer) { VersionSerializationHelper.EmitVersionByte(writer, VERSION_NUMBER); writer.WriteGuid(SourceNodeUid); writer.WriteGuid(SiteModelUid); writer.WriteGuid(DesignUid); writer.WriteInt((int)FileType); writer.WriteBoolean(DesignRemoved); }
public override void InternalToBinary(IBinaryRawWriter writer) { VersionSerializationHelper.EmitVersionByte(writer, VERSION_NUMBER); writer.WriteLong(InsertUTC.ToBinary()); writer.WriteByteArray(Content); writer.WriteGuid(ProjectUID); writer.WriteGuid(MachineUid); writer.WriteInt((int)Operation); writer.WriteInt((int)Origin); }
public override void InternalToBinary(IBinaryRawWriter writer) { base.InternalToBinary(writer); VersionSerializationHelper.EmitVersionByte(writer, VERSION_NUMBER); writer.WriteGuid(ProjectID); writer.WriteGuid(AlignmentDesignID); writer.WriteBoolean(ConvertArcsToPolyLines); writer.WriteDouble(ArcChordTolerance); }
public override void InternalToBinary(IBinaryRawWriter writer) { VersionSerializationHelper.EmitVersionByte(writer, VERSION_NUMBER); writer.WriteLong(InsertUTC.ToBinary()); writer.WriteString(FileName); writer.WriteByteArray(Content); writer.WriteGuid(ProjectID); writer.WriteGuid(AssetID); writer.WriteBoolean(IsJohnDoe); writer.WriteInt((int)SubmissionFlags); writer.WriteInt((int)OriginSource); }
/// <summary> /// Serialize out the state of the cell spatial filter using the Ignite IBinarizable serialisation /// </summary> public override void InternalToBinary(IBinaryRawWriter writer) { VersionSerializationHelper.EmitVersionByte(writer, VERSION_NUMBER); writer.WriteBoolean(Fence != null); Fence?.ToBinary(writer); writer.WriteBoolean(AlignmentFence != null); AlignmentFence?.ToBinary(writer); writer.WriteDouble(PositionX); writer.WriteDouble(PositionY); writer.WriteDouble(PositionRadius); writer.WriteBoolean(IsSquare); OverrideSpatialCellRestriction.ToBinary(writer); writer.WriteBoolean(StartStation.HasValue); if (StartStation.HasValue) { writer.WriteDouble(StartStation.Value); } writer.WriteBoolean(EndStation.HasValue); if (EndStation.HasValue) { writer.WriteDouble(EndStation.Value); } writer.WriteBoolean(LeftOffset.HasValue); if (LeftOffset.HasValue) { writer.WriteDouble(LeftOffset.Value); } writer.WriteBoolean(RightOffset.HasValue); if (RightOffset.HasValue) { writer.WriteDouble(RightOffset.Value); } writer.WriteBoolean(CoordsAreGrid); writer.WriteBoolean(IsSpatial); writer.WriteBoolean(IsPositional); writer.WriteBoolean(IsDesignMask); writer.WriteGuid(SurfaceDesignMaskDesignUid); writer.WriteBoolean(IsAlignmentMask); writer.WriteGuid(AlignmentDesignMaskDesignUID); }
public override void InternalToBinary(IBinaryRawWriter writer) { base.InternalToBinary(writer); VersionSerializationHelper.EmitVersionByte(writer, VERSION_NUMBER); writer.WriteGuid(ProjectID); writer.WriteGuid(AssetID); writer.WriteString(TAGFileName); writer.WriteString(TCCOrgID); writer.WriteByteArray(TagFileContent); writer.WriteBoolean(TreatAsJohnDoe); writer.WriteInt((int)SubmissionFlags); writer.WriteInt((int)OriginSource); }
public override void InternalToBinary(IBinaryRawWriter writer) { base.InternalToBinary(writer); VersionSerializationHelper.EmitVersionByte(writer, VERSION_NUMBER); writer.WriteGuid(NodeId); writer.WriteGuid(RequestDescriptor); writer.WriteBoolean(Payload?.Bytes != null); if (Payload?.Bytes != null) { writer.WriteByteArray(Payload.Bytes); } }
/// <summary> /// Serializes content to the writer /// </summary> public override void InternalToBinary(IBinaryRawWriter writer) { VersionSerializationHelper.EmitVersionByte(writer, VERSION_NUMBER); writer.WriteGuid(ProjectUid); writer.WriteByte((byte)RebuildResult); }
public void ToBinary(IBinaryRawWriter writer) { VersionSerializationHelper.EmitVersionByte(writer, VERSION_NUMBER); writer.WriteGuid(ProjectUID); writer.WriteLong(InsertUTCTicks); }
public override void InternalToBinary(IBinaryRawWriter writer) { VersionSerializationHelper.EmitVersionByte(writer, VERSION_NUMBER); writer.WriteBoolean(Success); writer.WriteGuid(NodeUid); }
public override void InternalToBinary(IBinaryRawWriter writer) { VersionSerializationHelper.EmitVersionByte(writer, VERSION_NUMBER); writer.WriteGuid(DesignID); writer.WriteDouble(Offset); }
/// <summary> /// Serializes content of the cell to the writer /// </summary> public override void InternalToBinary(IBinaryRawWriter writer) { VersionSerializationHelper.EmitVersionByte(writer, VERSION_NUMBER); writer.WriteGuid(DesignID); writer.WriteString(Folder); writer.WriteString(FileName); }
public override void InternalToBinary(IBinaryRawWriter writer) { base.InternalToBinary(writer); VersionSerializationHelper.EmitVersionByte(writer, VERSION_NUMBER); writer.WriteBoolean(Undo); writer.WriteGuid(ProjectID); writer.WriteGuid(AssetID); writer.WriteLong(StartUTC.ToBinary()); writer.WriteLong(EndUTC.ToBinary()); writer.WriteString(MachineDesignName); writer.WriteBoolean(LayerID.HasValue); if (LayerID.HasValue) { writer.WriteInt(LayerID.Value); } }
/// <summary> /// Writes this object to the given writer. /// </summary> public void WriteBinary(IBinaryRawWriter writer, bool changesOnly) { ((IgniteSessionStateItemCollection)Items).WriteBinary(writer, changesOnly); writer.WriteByteArray(SerializeStaticObjects()); writer.WriteInt(Timeout); writer.WriteGuid(LockNodeId); writer.WriteLong(LockId); writer.WriteTimestamp(LockTime); }
/// <summary> /// Writes this object to the given writer. /// </summary> public void WriteBinary(IBinaryRawWriter writer, bool changesOnly) { ((IgniteSessionStateItemCollection)Items).WriteBinary(writer, changesOnly); writer.WriteByteArray(SerializeStaticObjects()); writer.WriteInt(Timeout); writer.WriteGuid(LockNodeId); writer.WriteLong(LockId); writer.WriteTimestamp(LockTime); }
/// <summary> /// Serializes content to the writer /// </summary> public override void InternalToBinary(IBinaryRawWriter writer) { base.InternalToBinary(writer); VersionSerializationHelper.EmitVersionByte(writer, VERSION_NUMBER); writer.WriteGuid(ProjectID); writer.WriteInt((int)DeletionSelectivity); writer.WriteByte((byte)OriginS3TransferProxy); }
/// <summary> /// Writes the lock info. /// </summary> private void WriteLockInfo(IBinaryRawWriter writer, long lockId, bool writeTime = false) { writer.WriteGuid(Cache.Ignite.GetCluster().GetLocalNode().Id); writer.WriteLong(lockId); if (writeTime) { writer.WriteTimestamp(DateTime.UtcNow); } }
public override void InternalToBinary(IBinaryRawWriter writer) { VersionSerializationHelper.EmitVersionByte(writer, VERSION_NUMBER); writer.WriteGuid(SourceNodeUid); writer.WriteGuid(SiteModelID); writer.WriteBoolean(ExistenceMapModified); writer.WriteBoolean(DesignsModified); writer.WriteBoolean(SurveyedSurfacesModified); writer.WriteBoolean(CsibModified); writer.WriteBoolean(MachinesModified); writer.WriteBoolean(MachineTargetValuesModified); writer.WriteBoolean(MachineDesignsModified); writer.WriteBoolean(ProofingRunsModified); writer.WriteByteArray(ExistenceMapChangeMask); writer.WriteBoolean(AlignmentsModified); writer.WriteBoolean(SiteModelMarkedForDeletion); writer.WriteGuid(ChangeEventUid); writer.WriteLong(TimeSentUtc.ToBinary()); }
public override void InternalToBinary(IBinaryRawWriter writer) { base.InternalToBinary(writer); VersionSerializationHelper.EmitVersionByte(writer, VERSION_NUMBER); writer.WriteGuid(TRexNodeID); writer.WriteGuid(ProjectID); writer.WriteBoolean(ReferenceDesign != null); ReferenceDesign?.ToBinary(writer); writer.WriteBoolean(Filters != null); Filters?.ToBinary(writer); writer.WriteBoolean(Overrides != null); Overrides?.ToBinary(writer); writer.WriteBoolean(LiftParams != null); LiftParams?.ToBinary(writer); }
/// <summary> /// Serializes content to the writer /// </summary> public override void InternalToBinary(IBinaryRawWriter writer) { base.InternalToBinary(writer); VersionSerializationHelper.EmitVersionByte(writer, VERSION_NUMBER); writer.WriteGuid(AlignmentDesignUid); writer.WriteDouble(CrossSectionInterval); writer.WriteDouble(StartStation); writer.WriteDouble(EndStation); writer.WriteDoubleArray(Offsets); }
public void ToBinary(IBinaryRawWriter writer) { VersionSerializationHelper.EmitVersionByte(writer, VERSION_NUMBER); writer.WriteString(FileName); writer.WriteGuid(AssetUid); writer.WriteBoolean(Success); writer.WriteString(Exception); writer.WriteInt((int)ReadResult); writer.WriteInt((int)SubmissionFlags); writer.WriteInt((int)OriginSource); }
public override void InternalToBinary(IBinaryRawWriter writer) { base.InternalToBinary(writer); VersionSerializationHelper.EmitVersionByte(writer, VERSION_NUMBER); writer.WriteGuid(ProjectID); writer.WriteBoolean(DesignDescriptor != null); DesignDescriptor?.ToBinary(writer); writer.WriteBoolean(Extents != null); Extents?.ToBinary(writer); }
public override void InternalToBinary(IBinaryRawWriter writer) { VersionSerializationHelper.EmitVersionByte(writer, VERSION_NUMBER); writer.WriteGuid(ProjectUid); writer.WriteBoolean(ResponseItems != null); if (ResponseItems != null) { writer.WriteInt(ResponseItems.Length); ResponseItems.ForEach(x => x.ToBinary(writer)); } }
public override void InternalToBinary(IBinaryRawWriter writer) { VersionSerializationHelper.EmitVersionByte(writer, VERSION_NUMBER); writer.WriteGuid(ID); writer.WriteLong(CreationDate.ToBinary()); writer.WriteLong(LastModifiedDate.ToBinary()); writer.WriteBoolean(SiteModelExtent != null); SiteModelExtent?.ToBinary(writer); writer.WriteInt(MachineCount); writer.WriteInt(DesignCount); writer.WriteInt(SurveyedSurfaceCount); writer.WriteInt(AlignmentCount); }
/// <summary> /// Write node IDs. /// </summary> /// <param name="writer">Writer.</param> /// <param name="nodes">Nodes.</param> private static void WriteNodeIds(IBinaryRawWriter writer, ICollection <IClusterNode> nodes) { if (nodes == null) { writer.WriteBoolean(false); } else { writer.WriteBoolean(true); writer.WriteInt(nodes.Count); foreach (IClusterNode node in nodes) { writer.WriteGuid(node.Id); } } }
public override void InternalToBinary(IBinaryRawWriter writer) { base.InternalToBinary(writer); VersionSerializationHelper.EmitVersionByte(writer, VERSION_NUMBER); writer.WriteGuid(ProjectID); writer.WriteInt(TAGFiles?.Count ?? 0); if (TAGFiles != null) { foreach (var tagFile in TAGFiles) { tagFile.ToBinary(writer); } } }