C# Class Antmicro.Migrant.ObjectWriter

Afficher le fichier Open project: antmicro/Migrant Class Usage Examples

Private Properties

Свойство Type Description
CallPostSerializationHooksUsingReflection void
CheckForNullOrTransientnessAndWriteDeferredReference void
CheckLegality void
CheckLegality void
CheckLegalityAndWriteDeferredReference void
Completed void
GetDelegatesWithNonTransientTargets System.Delegate[]
HandleNewReference void
InvokeCallbacksAndExecute void
IsTypeIllegal bool
LinkSpecialWrite WriteMethodDelegate
PrepareForNextWrite void
SurrogateObjectIfNeeded object
TouchAndWriteTypeId int
TouchAndWriteTypeIdWithFullStamp int
TouchAndWriteTypeIdWithFullStampInner int
TouchAndWriteTypeIdWithSimpleStamp int
TryWriteObjectInline bool
WriteArray void
WriteArrayMetadata void
WriteArrayRowRecursive void
WriteDeferredReference void
WriteEnumerable void
WriteField void
WriteObjectInner void
WriteObjectUsingReflection void
WriteObjectsFields void
WriteSpecialObject bool
WriteValueType void

Méthodes publiques

Méthode Description
Flush ( ) : void
ObjectWriter ( Stream stream, Serializer writeMethods, Action preSerializationCallback = null, Action postSerializationCallback = null, SwapList surrogatesForObjects = null, SwapList objectsForSurrogates = null, bool treatCollectionAsUserObject = false, bool useBuffering = true, bool disableStamping = false, ReferencePreservation referencePreservation = ReferencePreservation.Preserve ) : System
ReuseWithNewStream ( Stream stream ) : void
WriteObject ( object o ) : void

Private Methods

Méthode Description
CallPostSerializationHooksUsingReflection ( object o ) : void
CheckForNullOrTransientnessAndWriteDeferredReference ( object o, Type objectFormalType = null ) : void
CheckLegality ( Type type ) : void
CheckLegality ( object obj, object>.Dictionary parents ) : void
CheckLegalityAndWriteDeferredReference ( object o ) : void
Completed ( object o ) : void
GetDelegatesWithNonTransientTargets ( MulticastDelegate mDelegate ) : System.Delegate[]
HandleNewReference ( object o, int refId ) : void
InvokeCallbacksAndExecute ( object o, Action action ) : void
IsTypeIllegal ( Type type ) : bool
LinkSpecialWrite ( Type actualType ) : WriteMethodDelegate
PrepareForNextWrite ( ) : void
SurrogateObjectIfNeeded ( object o, int refId ) : object
TouchAndWriteTypeId ( Type type ) : int
TouchAndWriteTypeIdWithFullStamp ( Type type ) : int
TouchAndWriteTypeIdWithFullStampInner ( Antmicro.Migrant.TypeDescriptor typeDescriptor ) : int
TouchAndWriteTypeIdWithSimpleStamp ( Type type ) : int
TryWriteObjectInline ( object o ) : bool
WriteArray ( Type elementFormalType, Array array ) : void
WriteArrayMetadata ( Array array ) : void
WriteArrayRowRecursive ( Array array, int currentDimension, Type elementFormalType, int position ) : void
WriteDeferredReference ( object o ) : void
WriteEnumerable ( Type elementFormalType, int count, IEnumerable collection ) : void
WriteField ( Type formalType, object value ) : void
WriteObjectInner ( object o ) : void
WriteObjectUsingReflection ( ObjectWriter objectWriter, object o ) : void

Writes the object using reflection. REMARK: this method is not thread-safe!

WriteObjectsFields ( object o, Type type ) : void
WriteSpecialObject ( object o, bool checkForCollections ) : bool
WriteValueType ( Type formalType, object value ) : void

Method Details

Flush() public méthode

public Flush ( ) : void
Résultat void

ObjectWriter() public méthode

public ObjectWriter ( Stream stream, Serializer writeMethods, Action preSerializationCallback = null, Action postSerializationCallback = null, SwapList surrogatesForObjects = null, SwapList objectsForSurrogates = null, bool treatCollectionAsUserObject = false, bool useBuffering = true, bool disableStamping = false, ReferencePreservation referencePreservation = ReferencePreservation.Preserve ) : System
stream Stream
writeMethods Serializer
preSerializationCallback Action
postSerializationCallback Action
surrogatesForObjects Antmicro.Migrant.Utilities.SwapList
objectsForSurrogates Antmicro.Migrant.Utilities.SwapList
treatCollectionAsUserObject bool
useBuffering bool
disableStamping bool
referencePreservation ReferencePreservation
Résultat System

ReuseWithNewStream() public méthode

public ReuseWithNewStream ( Stream stream ) : void
stream Stream
Résultat void

WriteObject() public méthode

public WriteObject ( object o ) : void
o object
Résultat void