C# Class Sanguosha.Core.Utils.RawSerializer

Raw serializer class. Serializes value types and structs whose length can be determined by the marshaller.
Afficher le fichier Open project: RagingBigFemaleBird/sgs Class Usage Examples

Protected Properties

Свойство Type Description
bw System.IO.BinaryWriter
tw TypeIO

Méthodes publiques

Méthode Description
Close ( ) : void

Close the stream.

Flush ( ) : void

Flush the stream.

RawSerializer ( Stream output ) : System

Constructor.

Serialize ( System.DateTime val ) : void
Serialize ( System.Guid val ) : void
Serialize ( ObjectInfo objs ) : void

Serialize an array of objects that specify the nullable state flag.

Serialize ( bool val ) : void
Serialize ( byte val ) : void
Serialize ( char val ) : void
Serialize ( decimal val ) : void
Serialize ( double val ) : void
Serialize ( float val ) : void
Serialize ( int val ) : void
Serialize ( long val ) : void
Serialize ( object val ) : void

Serialize a boxed value assuming nullable is false.

Serialize ( sbyte val ) : void
Serialize ( short val ) : void
Serialize ( string val ) : void
Serialize ( uint val ) : void
Serialize ( ulong val ) : void
Serialize ( ushort val ) : void
SerializeNullable ( object val ) : void

Serialize a boxed value specifying the nullable state.

WriteNullFlag ( object val ) : bool
WriteSimpleNullFlag ( object val ) : bool

Méthodes protégées

Méthode Description
InternalSerialize ( object val ) : void
SerializeStruct ( object val ) : void

Virtual method to manage serializing structures, using the Marshaller. Override this method to handle structs that the marshaller doesn't.

Method Details

Close() public méthode

Close the stream.
public Close ( ) : void
Résultat void

Flush() public méthode

Flush the stream.
public Flush ( ) : void
Résultat void

InternalSerialize() protected méthode

protected InternalSerialize ( object val ) : void
val object
Résultat void

RawSerializer() public méthode

Constructor.
public RawSerializer ( Stream output ) : System
output Stream The output stream.
Résultat System

Serialize() public méthode

public Serialize ( System.DateTime val ) : void
val System.DateTime
Résultat void

Serialize() public méthode

public Serialize ( System.Guid val ) : void
val System.Guid
Résultat void

Serialize() public méthode

Serialize an array of objects that specify the nullable state flag.
public Serialize ( ObjectInfo objs ) : void
objs ObjectInfo An array of ObjectInfo instance.
Résultat void

Serialize() public méthode

public Serialize ( bool val ) : void
val bool
Résultat void

Serialize() public méthode

public Serialize ( byte val ) : void
val byte
Résultat void

Serialize() public méthode

public Serialize ( char val ) : void
val char
Résultat void

Serialize() public méthode

public Serialize ( decimal val ) : void
val decimal
Résultat void

Serialize() public méthode

public Serialize ( double val ) : void
val double
Résultat void

Serialize() public méthode

public Serialize ( float val ) : void
val float
Résultat void

Serialize() public méthode

public Serialize ( int val ) : void
val int
Résultat void

Serialize() public méthode

public Serialize ( long val ) : void
val long
Résultat void

Serialize() public méthode

Serialize a boxed value assuming nullable is false.
public Serialize ( object val ) : void
val object The value.
Résultat void

Serialize() public méthode

public Serialize ( sbyte val ) : void
val sbyte
Résultat void

Serialize() public méthode

public Serialize ( short val ) : void
val short
Résultat void

Serialize() public méthode

public Serialize ( string val ) : void
val string
Résultat void

Serialize() public méthode

public Serialize ( uint val ) : void
val uint
Résultat void

Serialize() public méthode

public Serialize ( ulong val ) : void
val ulong
Résultat void

Serialize() public méthode

public Serialize ( ushort val ) : void
val ushort
Résultat void

SerializeNullable() public méthode

Serialize a boxed value specifying the nullable state.
public SerializeNullable ( object val ) : void
val object The value.
Résultat void

SerializeStruct() protected méthode

Virtual method to manage serializing structures, using the Marshaller. Override this method to handle structs that the marshaller doesn't.
protected SerializeStruct ( object val ) : void
val object The struct to serialize.
Résultat void

WriteNullFlag() public méthode

public WriteNullFlag ( object val ) : bool
val object
Résultat bool

WriteSimpleNullFlag() public méthode

public WriteSimpleNullFlag ( object val ) : bool
val object
Résultat bool

Property Details

bw protected_oe property

The binary writer instance to which value types are written.
protected BinaryWriter,System.IO bw
Résultat System.IO.BinaryWriter

tw protected_oe property

Helper instance for writing value types.
protected TypeIO,Sanguosha.Core.Utils tw
Résultat TypeIO