C# 클래스 CK.Core.CKBinaryReader

Specializes BinaryReader to expose helpers.
상속: System.IO.BinaryReader
파일 보기 프로젝트 열기: Invenietis/ck-core 1 사용 예제들

공개 메소드들

메소드 설명
CKBinaryReader ( Stream input ) : CK.Text

Initializes a new CKBinaryReader based on the specified stream and using UTF-8 encoding.

CKBinaryReader ( Stream input, Encoding encoding ) : CK.Text

Initializes a new CKBinaryReader based on the specified stream and character encoding.

CKBinaryReader ( Stream input, Encoding encoding, bool leaveOpen ) : CK.Text

Initializes a new CKBinaryReader based on the specified stream and character encoding.

ReadNonNegativeSmallInt32 ( ) : int

Reads in a 32-bit integer in compressed format.

ReadNullableString ( ) : string

Reads a potentially null string.

ReadNullableString ( bool streamIsCRLF ) : string

Reads a potentially null string.

ReadSmallInt32 ( int minNegativeValue = -1 ) : int

Reads in a 32-bit integer in compressed format wriiten by CKBinaryWriter.WriteSmallInt32(int, int).

ReadString ( bool streamIsCRLF ) : string

Reads and normalizes a string according to Environment.NewLine. The fact that the data has actually be saved with LF or CRLF must be known.

메소드 상세

CKBinaryReader() 공개 메소드

Initializes a new CKBinaryReader based on the specified stream and using UTF-8 encoding.
public CKBinaryReader ( Stream input ) : CK.Text
input Stream The input stream.
리턴 CK.Text

CKBinaryReader() 공개 메소드

Initializes a new CKBinaryReader based on the specified stream and character encoding.
public CKBinaryReader ( Stream input, Encoding encoding ) : CK.Text
input Stream The input stream.
encoding System.Text.Encoding The character encoding to use.
리턴 CK.Text

CKBinaryReader() 공개 메소드

Initializes a new CKBinaryReader based on the specified stream and character encoding.
public CKBinaryReader ( Stream input, Encoding encoding, bool leaveOpen ) : CK.Text
input Stream The input stream.
encoding System.Text.Encoding The character encoding to use.
leaveOpen bool true to leave the stream open after this reader object is disposed; otherwise, false.
리턴 CK.Text

ReadNonNegativeSmallInt32() 공개 메소드

Reads in a 32-bit integer in compressed format.
public ReadNonNegativeSmallInt32 ( ) : int
리턴 int

ReadNullableString() 공개 메소드

Reads a potentially null string.
public ReadNullableString ( ) : string
리턴 string

ReadNullableString() 공개 메소드

Reads a potentially null string.
public ReadNullableString ( bool streamIsCRLF ) : string
streamIsCRLF bool True if the contains /// strings with CRLF end-of-line, false if the end-of-line is LF only.
리턴 string

ReadSmallInt32() 공개 메소드

Reads in a 32-bit integer in compressed format wriiten by CKBinaryWriter.WriteSmallInt32(int, int).
public ReadSmallInt32 ( int minNegativeValue = -1 ) : int
minNegativeValue int The same negative value used to write the integer.
리턴 int

ReadString() 공개 메소드

Reads and normalizes a string according to Environment.NewLine. The fact that the data has actually be saved with LF or CRLF must be known.
public ReadString ( bool streamIsCRLF ) : string
streamIsCRLF bool True if the contains /// strings with CRLF end-of-line, false if the end-of-line is LF only.
리턴 string