public byte[] Serialize() { var _SerializationWriter = new SerializationWriter(); _SerializationWriter.WriteString(ThrowedException); return _SerializationWriter.ToArray(); }
public byte[] Serialize() { var _SerializationWriter = new SerializationWriter(); _SerializationWriter.WriteString(Message); return _SerializationWriter.ToArray(); }
public Byte[] Serialize() { var _SerializationWriter = new SerializationWriter(); _SerializationWriter.WriteString(ObjectLocation); _SerializationWriter.WriteByte(NewDefaultRule); return _SerializationWriter.ToArray(); }
private void Serialize(ref SerializationWriter mySerializationWriter, DirectoryEntry myDirectoryEntry) { try { #region Write the InlineData mySerializationWriter.Write(myDirectoryEntry._InlineData); #endregion #region Write the INodePositions mySerializationWriter.WriteUInt32((UInt32)myDirectoryEntry.INodePositions.Count); foreach (var _ExtendedPosition in myDirectoryEntry.INodePositions) { _ExtendedPosition.StorageUUID.Serialize(ref mySerializationWriter); mySerializationWriter.WriteUInt64(_ExtendedPosition.Position); } #endregion #region Write the ObjectStreamsList mySerializationWriter.WriteUInt32((UInt32)myDirectoryEntry.ObjectStreamsList.Count); foreach (var _ObjectStreamType in myDirectoryEntry.ObjectStreamsList) mySerializationWriter.WriteString(_ObjectStreamType); #endregion myDirectoryEntry.isDirty = false; } catch (SerializationException e) { throw new SerializationException(e.Message); } }
private byte[] Serialize(ref SerializationWriter mySerializationWriter, ADBSettingsBase myValue) { #region Write Basics try { if (myValue != null) { mySerializationWriter.WriteString(myValue.Name); mySerializationWriter.WriteString(myValue.Description); mySerializationWriter.WriteObject(myValue.OwnerID); myValue.Type.Serialize(ref mySerializationWriter); mySerializationWriter.WriteObject(myValue.Default.Value); mySerializationWriter.WriteObject(myValue._Value.Value); _isDirty = false; } else { mySerializationWriter.WriteString(Name); mySerializationWriter.WriteString(Description); mySerializationWriter.WriteObject(myValue.OwnerID); myValue.Type.Serialize(ref mySerializationWriter); mySerializationWriter.WriteObject(Default.Value); mySerializationWriter.WriteObject(_Value.Value); } } catch (SerializationException e) { throw new SerializationException(e.Message); } #endregion return mySerializationWriter.ToArray(); }
public byte[] Serialize() { #region Data SerializationWriter writer; writer = new SerializationWriter(); #endregion #region Write Basics try { writer.WriteString(Name); writer.WriteString(Description); OwnerID.Serialize(ref writer); Type.Serialize(ref writer); writer.WriteObject(Default.Value); writer.WriteObject(_Value.Value); _isDirty = false; } catch (SerializationException e) { throw new SerializationException(e.Message); } #endregion return writer.ToArray(); }
public Byte[] Serialize() { var _SerializationWriter = new SerializationWriter(); _SerializationWriter.WriteString(ObjectLocation.ToString()); _SerializationWriter.WriteString(ObjectStream); _SerializationWriter.WriteString(ObjectEdition); _SerializationWriter.WriteString(ObjectRevisionID.ToString()); return _SerializationWriter.ToArray(); }
public override void Serialize(ref SerializationWriter mySerializationWriter) { try { mySerializationWriter.WriteString(_ContentType); mySerializationWriter.Write(_ObjectData); } catch (SerializationException e) { throw new SerializationException(e.Message); } }
public void Serialize(ref SerializationWriter mySerializationWriter) { mySerializationWriter.WriteString(TypeName); }
public byte[] Serialize() { var _SerializationWriter = new SerializationWriter(); _SerializationWriter.WriteString(ObjectLocation); _SerializationWriter.WriteType(TypeOfCacheEntry); return _SerializationWriter.ToArray(); }
public byte[] Serialize() { var _SerializationWriter = new SerializationWriter(); _SerializationWriter.WriteString(ObjectLocation); _SerializationWriter.WriteString(UserMetadataKey); _SerializationWriter.WriteInt32(NumberOfRevisions); return _SerializationWriter.ToArray(); }
public override void Serialize(ref SerializationWriter mySerializationWriter) { if (mySerializationWriter != null) { try { ParentTypeUUID.Serialize(ref mySerializationWriter); mySerializationWriter.WriteBoolean(_IsUserDefined); mySerializationWriter.WriteBoolean(_IsAbstract); mySerializationWriter.WriteString(_Comment); mySerializationWriter.WriteUInt32((UInt32)_Attributes.Count); foreach (var pValPair in _Attributes) { pValPair.Key.Serialize(ref mySerializationWriter); pValPair.Value.Serialize(ref mySerializationWriter); } mySerializationWriter.WriteUInt32((UInt32)_TypeSettings.Count); foreach (var pValPair in _TypeSettings) mySerializationWriter.WriteObject(pValPair.Value); mySerializationWriter.WriteUInt32((UInt32)_UniqueAttributes.Count); foreach (var pValPair in _UniqueAttributes) pValPair.Serialize(ref mySerializationWriter); mySerializationWriter.WriteUInt32((UInt32)_MandatoryAttributes.Count); foreach (var pValPair in _MandatoryAttributes) pValPair.Serialize(ref mySerializationWriter); mySerializationWriter.WriteUInt16((UInt16)ObjectDirectoryShards); #region Indices mySerializationWriter.WriteUInt32((UInt32)_AttributeIndices.Count); foreach (var idx in _AttributeIndices) { idx.Key.Serialize(ref mySerializationWriter); mySerializationWriter.WriteUInt32((UInt32)idx.Value.Count); foreach (var idxType in idx.Value) { mySerializationWriter.WriteString(idxType.Key); mySerializationWriter.WriteString(idxType.Value.FileSystemLocation.ToString()); mySerializationWriter.WriteString(idxType.Value.IndexEdition); mySerializationWriter.WriteString(idxType.Value.IndexName); mySerializationWriter.WriteString(idxType.Value.IndexType); mySerializationWriter.WriteBoolean(idxType.Value is UUIDIndex); mySerializationWriter.WriteUInt64(idxType.Value.GetKeyCount()); mySerializationWriter.WriteUInt64(idxType.Value.GetValueCount()); mySerializationWriter.WriteUInt16(idxType.Value.AttributeIdxShards); } } #endregion } catch (Exception e) { throw new SerializationException("The GraphDBType could not be serialized!\n\n" + e); } } }
public Byte[] Serialize() { var writer = new SerializationWriter(); writer.WriteString(ObjectLocation); RightUUID.Serialize(ref writer); EntitiyUUID.Serialize(ref writer); return writer.ToArray(); }
private void Serialize(ref SerializationWriter mySerializationWriter, DBString myValue) { mySerializationWriter.WriteString((String)myValue.Value); }
public Byte[] Serialize() { SerializationWriter writer = new SerializationWriter(); writer.WriteString(ServiceGlobalUniqueName); writer.WriteString(ServiceUri.ToString()); writer.WriteByte((Byte)ServiceType); return writer.ToArray(); }
public byte[] Serialize() { var _SerializationWriter = new SerializationWriter(); _SerializationWriter.WriteString(ObjectLocation); _SerializationWriter.WriteType(GraphObjectType); return _SerializationWriter.ToArray(); }
public byte[] Serialize() { var _SerializationWriter = new SerializationWriter(); if (StorageURIs == null) _SerializationWriter.WriteUInt32(0); else _SerializationWriter.WriteUInt32((UInt32)StorageURIs.Count); foreach (String uri in StorageURIs) _SerializationWriter.WriteString(uri); _SerializationWriter.WriteString(StorageType); _SerializationWriter.WriteUInt64(StorageSize); return _SerializationWriter.ToArray(); }
public void Serialize(ref SerializationWriter mySerializationWriter) { if (mySerializationWriter != null) { UUID.Serialize(ref mySerializationWriter); DBTypeUUID.Serialize(ref mySerializationWriter); mySerializationWriter.WriteByte((byte)KindOfType); TypeCharacteristics.Serialize(ref mySerializationWriter); mySerializationWriter.WriteString(Name); mySerializationWriter.WriteBoolean(EdgeType != null); if (EdgeType != null) mySerializationWriter.WriteObject(EdgeType); RelatedGraphDBTypeUUID.Serialize(ref mySerializationWriter); if (TypeCharacteristics.IsBackwardEdge) mySerializationWriter.WriteObject(BackwardEdgeDefinition); mySerializationWriter.WriteObject(DefaultValue); // Write Settings mySerializationWriter.WriteUInt32((UInt32)_Settings.Count); foreach (var _KVPair in _Settings) mySerializationWriter.WriteObject(_KVPair.Value); } }