C# 클래스 Sanguosha.Core.Utils.RawSerializer

Raw serializer class. Serializes value types and structs whose length can be determined by the marshaller.
파일 보기 프로젝트 열기: RagingBigFemaleBird/sgs 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
bw System.IO.BinaryWriter
tw TypeIO

공개 메소드들

메소드 설명
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

보호된 메소드들

메소드 설명
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.

메소드 상세

Close() 공개 메소드

Close the stream.
public Close ( ) : void
리턴 void

Flush() 공개 메소드

Flush the stream.
public Flush ( ) : void
리턴 void

InternalSerialize() 보호된 메소드

protected InternalSerialize ( object val ) : void
val object
리턴 void

RawSerializer() 공개 메소드

Constructor.
public RawSerializer ( Stream output ) : System
output Stream The output stream.
리턴 System

Serialize() 공개 메소드

public Serialize ( System.DateTime val ) : void
val System.DateTime
리턴 void

Serialize() 공개 메소드

public Serialize ( System.Guid val ) : void
val System.Guid
리턴 void

Serialize() 공개 메소드

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

Serialize() 공개 메소드

public Serialize ( bool val ) : void
val bool
리턴 void

Serialize() 공개 메소드

public Serialize ( byte val ) : void
val byte
리턴 void

Serialize() 공개 메소드

public Serialize ( char val ) : void
val char
리턴 void

Serialize() 공개 메소드

public Serialize ( decimal val ) : void
val decimal
리턴 void

Serialize() 공개 메소드

public Serialize ( double val ) : void
val double
리턴 void

Serialize() 공개 메소드

public Serialize ( float val ) : void
val float
리턴 void

Serialize() 공개 메소드

public Serialize ( int val ) : void
val int
리턴 void

Serialize() 공개 메소드

public Serialize ( long val ) : void
val long
리턴 void

Serialize() 공개 메소드

Serialize a boxed value assuming nullable is false.
public Serialize ( object val ) : void
val object The value.
리턴 void

Serialize() 공개 메소드

public Serialize ( sbyte val ) : void
val sbyte
리턴 void

Serialize() 공개 메소드

public Serialize ( short val ) : void
val short
리턴 void

Serialize() 공개 메소드

public Serialize ( string val ) : void
val string
리턴 void

Serialize() 공개 메소드

public Serialize ( uint val ) : void
val uint
리턴 void

Serialize() 공개 메소드

public Serialize ( ulong val ) : void
val ulong
리턴 void

Serialize() 공개 메소드

public Serialize ( ushort val ) : void
val ushort
리턴 void

SerializeNullable() 공개 메소드

Serialize a boxed value specifying the nullable state.
public SerializeNullable ( object val ) : void
val object The value.
리턴 void

SerializeStruct() 보호된 메소드

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.
리턴 void

WriteNullFlag() 공개 메소드

public WriteNullFlag ( object val ) : bool
val object
리턴 bool

WriteSimpleNullFlag() 공개 메소드

public WriteSimpleNullFlag ( object val ) : bool
val object
리턴 bool

프로퍼티 상세

bw 보호되어 있는 프로퍼티

The binary writer instance to which value types are written.
protected BinaryWriter,System.IO bw
리턴 System.IO.BinaryWriter

tw 보호되어 있는 프로퍼티

Helper instance for writing value types.
protected TypeIO,Sanguosha.Core.Utils tw
리턴 TypeIO